-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Extract component resources into <component>/resources.ts #1419
Comments
This one valid? |
Will revisit this once #2913 lands. |
Split up the effort by individual components to determine effort needed across the components. Once the individual breakdown is setup, could be a |
I assume these are divided on a per-component basis, even within nested parent-child relationship trees? We won't be consolidating resources for those, right? Eg. I think these should either have individual resources or share one common file, or else we'll end up importing 2 files, which seems messy. @geospatialem How should I approach the task of dividing these into individual components to assess the required effort across each component? Should I be transforming this issue into an epic? |
Summarizing our Teams discussion. Will approach this issue as a means to organize the component audit, and was it needed across the design system. Updated the issue summary above to include a list of all components, including functional components, for inclusion of the audit, targeted for January. cc: @Elijbet |
Spike to confirm across components which need to be addressed, and which are already following the expected/anticipated pattern. |
Updated list with remaining components. Findings
|
Summary
For reusability between tests and components, CSS, SLOTS,
TEXT(no longer applicable after built-in localization was introduced), and additional resources should be extracted into a supporting<calcite-component>/resources.ts
file.Measure of Success
text, values [if applicable]) to component resources fileRename existing– dropped in favor of conciseness in imports. Unlike otherresources.ts
to<component-name>.resources.ts
<component-name>.<type>.<extension>
files, resource files are imported in one or multiple files.CONVENTIONS.md
Which Component
accordion
accordion-item
action
action-bar
action-group
action-menu
action-pad
alert
avatar
block
block-section
button
card
checkbox
chip
chip-group
color-picker
color-picker-hex-input
color-picker-swatch
combobox
combobox-item
combobox-item-group
date-picker
date-picker-day
date-picker-month-header
date-picker-month
dropdown
dropdown-group
dropdown-item
fab
filter
flow
flow-item
graph
handle
icon
inline-editable
input
input-date-picker
input-message
input-number
input-text
input-time-picker
input-time-zone
label
link
list
list-item
list-item-group
loader
menu
menu-item
(SLOTS
object only)meter
modal
navigation
navigation-logo
navigation-user
notice
option
option-group
pagination
panel
pick-list
(deprecated)pick-list-group
(deprecated)pick-list-item
(deprecated)popover
progress
radio-button
radio-group
radio-group-item
rating
scrim
segmented-control
segmented-control-item
sheet
shell
shell-center-row
shell-panel
slider
split-button
stack
stepper
stepper-item
switch
tab
tab-nav
tab-title
table
table-header
table-row
table-cell
tabs
text-area
tile
tile-select
tile-select-group
time-picker
tip
tip-group
tip-manager
tooltip
tree
tree-item
value-list
(deprecated)value-list-item
(deprecated)Resources
Examples:
The text was updated successfully, but these errors were encountered: