@wonderflow/react-components 2.40.0-next.1 → 3.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/avatar/avatar.d.ts +15 -3
- package/avatar/avatar.js +3 -6
- package/avatar/avatar.module.css +1 -31
- package/button/button.d.ts +35 -0
- package/button/button.js +7 -10
- package/button/button.module.css +1 -154
- package/card/card.d.ts +24 -0
- package/card/card.js +3 -6
- package/card/card.module.css +1 -51
- package/chip/chip.d.ts +28 -4
- package/chip/chip.js +3 -5
- package/chip/chip.module.css +1 -60
- package/circular-progress/circular-progress.d.ts +33 -3
- package/circular-progress/circular-progress.js +3 -2
- package/circular-progress/circular-progress.module.css +1 -55
- package/clamp-text/clamp-text.d.ts +6 -0
- package/clamp-text/clamp-text.js +3 -2
- package/clamp-text/clamp-text.module.css +1 -7
- package/container/container.d.ts +6 -0
- package/container/container.js +3 -2
- package/container/container.module.css +1 -35
- package/core/basic.css +1 -49
- package/core/elevations.css +1 -56
- package/core/typography.css +1 -117
- package/core/{media.css → utils/media.css} +19 -1
- package/core/utils/vibrancy.css +3 -0
- package/core.css +1 -5
- package/disclosure/disclosure.d.ts +55 -3
- package/disclosure/disclosure.js +4 -7
- package/disclosure/disclosure.module.css +1 -93
- package/drawer/drawer.d.ts +81 -0
- package/drawer/drawer.js +34 -0
- package/drawer/drawer.module.css +1 -0
- package/drawer/index.d.ts +2 -0
- package/drawer/index.js +1 -0
- package/dropdown/dropdown.d.ts +21 -2
- package/dropdown/dropdown.js +25 -26
- package/dropdown/dropdown.module.css +1 -9
- package/dropdown/index.d.ts +2 -1
- package/dropdown/item/dropdown-item.d.ts +47 -0
- package/dropdown/item/dropdown-item.js +23 -0
- package/dropdown/item/dropdown-item.module.css +1 -0
- package/dropdown/item-checkbox/dropdown-item-checkbox.d.ts +11 -0
- package/dropdown/item-checkbox/dropdown-item-checkbox.js +5 -0
- package/dropdown/menu/dropdown-menu.d.ts +13 -0
- package/dropdown/menu/dropdown-menu.js +13 -0
- package/dropdown/menu/dropdown-menu.module.css +1 -0
- package/elevator/elevator.d.ts +11 -0
- package/elevator/elevator.js +6 -5
- package/grid/grid.d.ts +32 -2
- package/grid/grid.js +4 -3
- package/grid/grid.module.css +1 -29
- package/grid/index.d.ts +1 -1
- package/grid/item/grid-item.d.ts +41 -0
- package/grid/item/grid-item.js +12 -0
- package/grid/item/grid-item.module.css +1 -0
- package/icon/icon.d.ts +29 -3
- package/icon/icon.js +3 -3
- package/icon-button/icon-button.js +3 -2
- package/icon-button/icon-button.module.css +1 -22
- package/icons/svgs/16/arrow-down-16.svg +3 -0
- package/icons/svgs/16/arrow-down-left-16.svg +3 -0
- package/icons/svgs/16/arrow-down-right-16.svg +3 -0
- package/icons/svgs/16/arrow-down-to-bracket-16.svg +3 -0
- package/icons/svgs/16/arrow-left-16.svg +3 -0
- package/icons/svgs/16/arrow-right-16.svg +3 -0
- package/icons/svgs/16/arrow-rotate-right-16.svg +3 -0
- package/icons/svgs/16/arrow-trend-down-16.svg +3 -0
- package/icons/svgs/16/arrow-trend-up-16.svg +3 -0
- package/icons/svgs/16/arrow-up-16.svg +3 -0
- package/icons/svgs/16/arrow-up-left-16.svg +3 -0
- package/icons/svgs/16/arrow-up-right-16.svg +3 -0
- package/icons/svgs/16/backward-step-16.svg +3 -0
- package/icons/svgs/16/ban-16.svg +3 -0
- package/icons/svgs/16/bars-16.svg +3 -0
- package/icons/svgs/16/bars-sort-down-16.svg +3 -0
- package/icons/svgs/16/bars-sort-up-16.svg +3 -0
- package/icons/svgs/16/bell-16.svg +3 -0
- package/icons/svgs/16/bookmark-16.svg +3 -0
- package/icons/svgs/16/calendar-16.svg +3 -0
- package/icons/svgs/16/calendar-plus-16.svg +3 -0
- package/icons/svgs/16/cart-shopping-16.svg +3 -0
- package/icons/svgs/16/check-16.svg +3 -0
- package/icons/svgs/16/chevron-down-16.svg +3 -0
- package/icons/svgs/16/chevron-left-16.svg +3 -0
- package/icons/svgs/16/chevron-right-16.svg +3 -0
- package/icons/svgs/16/chevron-up-16.svg +3 -0
- package/icons/svgs/16/circle-16.svg +3 -0
- package/icons/svgs/16/circle-check-16.svg +3 -0
- package/icons/svgs/16/circle-exclamation-16.svg +3 -0
- package/icons/svgs/16/circle-info-16.svg +3 -0
- package/icons/svgs/16/circle-question-16.svg +3 -0
- package/icons/svgs/16/circle-x-16.svg +3 -0
- package/icons/svgs/16/clock-rotate-left-16.svg +3 -0
- package/icons/svgs/16/code-16.svg +3 -0
- package/icons/svgs/16/comment-16.svg +3 -0
- package/icons/svgs/16/compass-16.svg +3 -0
- package/icons/svgs/16/crown-16.svg +3 -0
- package/icons/svgs/16/earth-europa-16.svg +3 -0
- package/icons/svgs/16/envelope-16.svg +3 -0
- package/icons/svgs/16/eye-16.svg +3 -0
- package/icons/svgs/16/eye-slash-16.svg +10 -0
- package/icons/svgs/16/facebook-16.svg +3 -0
- package/icons/svgs/16/file-16.svg +3 -0
- package/icons/svgs/16/file-alt-16.svg +3 -0
- package/icons/svgs/16/file-image-16.svg +3 -0
- package/icons/svgs/16/file-pdf-16.svg +3 -0
- package/icons/svgs/16/file-xmark-16.svg +3 -0
- package/icons/svgs/16/filter-16.svg +3 -0
- package/icons/svgs/16/forward-step-16.svg +3 -0
- package/icons/svgs/16/frown-16.svg +3 -0
- package/icons/svgs/16/gear-16.svg +3 -0
- package/icons/svgs/16/github-16.svg +3 -0
- package/icons/svgs/16/graduation-cap-16.svg +10 -0
- package/icons/svgs/16/grid-2-16.svg +3 -0
- package/icons/svgs/16/grip-vertical-16.svg +3 -0
- package/icons/svgs/16/hand-pointer-16.svg +3 -0
- package/icons/svgs/16/house-16.svg +3 -0
- package/icons/svgs/16/layer-group-16.svg +3 -0
- package/icons/svgs/16/link-16.svg +3 -0
- package/icons/svgs/16/linkedin-16.svg +3 -0
- package/icons/svgs/16/lock-16.svg +3 -0
- package/icons/svgs/16/lock-open-16.svg +10 -0
- package/icons/svgs/16/magnifying-glass-16.svg +3 -0
- package/icons/svgs/16/meh-16.svg +3 -0
- package/icons/svgs/16/message-16.svg +3 -0
- package/icons/svgs/16/minus-16.svg +3 -0
- package/icons/svgs/16/moon-16.svg +3 -0
- package/icons/svgs/16/nps-16.svg +3 -0
- package/icons/svgs/16/pause-16.svg +3 -0
- package/icons/svgs/16/pc-16.svg +3 -0
- package/icons/svgs/16/play-16.svg +3 -0
- package/icons/svgs/16/plus-16.svg +3 -0
- package/icons/svgs/16/rectangle-barcode-16.svg +3 -0
- package/icons/svgs/16/right-from-bracket-16.svg +3 -0
- package/icons/svgs/16/share-from-square-16.svg +10 -0
- package/icons/svgs/16/signal-stream-16.svg +3 -0
- package/icons/svgs/16/smile-16.svg +3 -0
- package/icons/svgs/16/smile-rotate-right-16.svg +10 -0
- package/icons/svgs/16/sort-16.svg +3 -0
- package/icons/svgs/16/sort-alt-16.svg +3 -0
- package/icons/svgs/16/sort-down-16.svg +3 -0
- package/icons/svgs/16/sort-left-16.svg +3 -0
- package/icons/svgs/16/sort-right-16.svg +3 -0
- package/icons/svgs/16/sort-up-16.svg +3 -0
- package/icons/svgs/16/star-16.svg +3 -0
- package/icons/svgs/16/stop-16.svg +3 -0
- package/icons/svgs/16/sun-bright-16.svg +3 -0
- package/icons/svgs/16/tags-16.svg +3 -0
- package/icons/svgs/16/text-slash-16.svg +10 -0
- package/icons/svgs/16/thumbs-down-16.svg +3 -0
- package/icons/svgs/16/thumbs-up-16.svg +3 -0
- package/icons/svgs/16/thumbtack-16.svg +3 -0
- package/icons/svgs/16/triangle-exclamation-16.svg +3 -0
- package/icons/svgs/16/turn-down-right-16.svg +3 -0
- package/icons/svgs/16/twitter-16.svg +10 -0
- package/icons/svgs/16/user-16.svg +3 -0
- package/icons/svgs/16/wave-sine-16.svg +3 -0
- package/icons/svgs/16/xmark-16.svg +3 -0
- package/icons/svgs/24/arrow-down-24.svg +3 -0
- package/icons/svgs/24/arrow-down-left-24.svg +3 -0
- package/icons/svgs/24/arrow-down-right-24.svg +3 -0
- package/icons/svgs/24/arrow-down-to-bracket-24.svg +3 -0
- package/icons/svgs/24/arrow-left-24.svg +3 -0
- package/icons/svgs/24/arrow-right-24.svg +3 -0
- package/icons/svgs/24/arrow-rotate-right-24.svg +3 -0
- package/icons/svgs/24/arrow-trend-down-24.svg +3 -0
- package/icons/svgs/24/arrow-trend-up-24.svg +3 -0
- package/icons/svgs/24/arrow-up-24.svg +3 -0
- package/icons/svgs/24/arrow-up-left-24.svg +3 -0
- package/icons/svgs/24/arrow-up-right-24.svg +3 -0
- package/icons/svgs/24/backward-step-24.svg +3 -0
- package/icons/svgs/24/ban-24.svg +3 -0
- package/icons/svgs/24/bars-24.svg +3 -0
- package/icons/svgs/24/bars-sort-down-24.svg +3 -0
- package/icons/svgs/24/bars-sort-up-24.svg +3 -0
- package/icons/svgs/24/bell-24.svg +3 -0
- package/icons/svgs/24/bookmark-24.svg +3 -0
- package/icons/svgs/24/calendar-24.svg +3 -0
- package/icons/svgs/24/calendar-plus-24.svg +3 -0
- package/icons/svgs/24/cart-shopping-24.svg +3 -0
- package/icons/svgs/24/check-24.svg +3 -0
- package/icons/svgs/24/chevron-down-24.svg +3 -0
- package/icons/svgs/24/chevron-left-24.svg +3 -0
- package/icons/svgs/24/chevron-right-24.svg +3 -0
- package/icons/svgs/24/chevron-up-24.svg +3 -0
- package/icons/svgs/24/circle-24.svg +3 -0
- package/icons/svgs/24/circle-check-24.svg +3 -0
- package/icons/svgs/24/circle-exclamation-24.svg +3 -0
- package/icons/svgs/24/circle-info-24.svg +3 -0
- package/icons/svgs/24/circle-question-24.svg +3 -0
- package/icons/svgs/24/circle-x-24.svg +3 -0
- package/icons/svgs/24/clock-rotate-left-24.svg +3 -0
- package/icons/svgs/24/code-24.svg +3 -0
- package/icons/svgs/24/comment-24.svg +3 -0
- package/icons/svgs/24/compass-24.svg +3 -0
- package/icons/svgs/24/crown-24.svg +3 -0
- package/icons/svgs/24/earth-europa-24.svg +3 -0
- package/icons/svgs/24/envelope-24.svg +3 -0
- package/icons/svgs/24/eye-24.svg +3 -0
- package/icons/svgs/24/eye-slash-24.svg +3 -0
- package/icons/svgs/24/facebook-24.svg +3 -0
- package/icons/svgs/24/file-24.svg +3 -0
- package/icons/svgs/24/file-alt-24.svg +3 -0
- package/icons/svgs/24/file-image-24.svg +3 -0
- package/icons/svgs/24/file-pdf-24.svg +3 -0
- package/icons/svgs/24/file-xmark-24.svg +3 -0
- package/icons/svgs/24/filter-24.svg +3 -0
- package/icons/svgs/24/forward-step-24.svg +3 -0
- package/icons/svgs/24/frown-24.svg +3 -0
- package/icons/svgs/24/gear-24.svg +3 -0
- package/icons/svgs/24/github-24.svg +3 -0
- package/icons/svgs/24/graduation-cap-24.svg +3 -0
- package/icons/svgs/24/grid-2-24.svg +3 -0
- package/icons/svgs/24/grip-vertical-24.svg +3 -0
- package/icons/svgs/24/hand-pointer-24.svg +3 -0
- package/icons/svgs/24/house-24.svg +3 -0
- package/icons/svgs/24/layer-group-24.svg +3 -0
- package/icons/svgs/24/link-24.svg +3 -0
- package/icons/svgs/24/linkedin-24.svg +3 -0
- package/icons/svgs/24/lock-24.svg +3 -0
- package/icons/svgs/24/lock-open-24.svg +3 -0
- package/icons/svgs/24/magnifying-glass-24.svg +3 -0
- package/icons/svgs/24/meh-24.svg +3 -0
- package/icons/svgs/24/message-24.svg +3 -0
- package/icons/svgs/24/minus-24.svg +3 -0
- package/icons/svgs/24/moon-24.svg +3 -0
- package/icons/svgs/24/nps-24.svg +3 -0
- package/icons/svgs/24/pause-24.svg +3 -0
- package/icons/svgs/24/pc-24.svg +3 -0
- package/icons/svgs/24/play-24.svg +3 -0
- package/icons/svgs/24/plus-24.svg +3 -0
- package/icons/svgs/24/rectangle-barcode-24.svg +3 -0
- package/icons/svgs/24/right-from-bracket-24.svg +3 -0
- package/icons/svgs/24/share-from-square-24.svg +3 -0
- package/icons/svgs/24/signal-stream-24.svg +3 -0
- package/icons/svgs/24/smile-24.svg +3 -0
- package/icons/svgs/24/smile-rotate-right-24.svg +3 -0
- package/icons/svgs/24/sort-24.svg +3 -0
- package/icons/svgs/24/sort-alt-24.svg +3 -0
- package/icons/svgs/24/sort-down-24.svg +3 -0
- package/icons/svgs/24/sort-left-24.svg +3 -0
- package/icons/svgs/24/sort-right-24.svg +3 -0
- package/icons/svgs/24/sort-up-24.svg +3 -0
- package/icons/svgs/24/star-24.svg +3 -0
- package/icons/svgs/24/stop-24.svg +3 -0
- package/icons/svgs/24/sun-bright-24.svg +3 -0
- package/icons/svgs/24/tags-24.svg +3 -0
- package/icons/svgs/24/text-slash-24.svg +3 -0
- package/icons/svgs/24/thumbs-down-24.svg +3 -0
- package/icons/svgs/24/thumbs-up-24.svg +3 -0
- package/icons/svgs/24/thumbtack-24.svg +3 -0
- package/icons/svgs/24/triangle-exclamation-24.svg +3 -0
- package/icons/svgs/24/turn-down-right-24.svg +3 -0
- package/icons/svgs/24/twitter-24.svg +3 -0
- package/icons/svgs/24/user-24.svg +3 -0
- package/icons/svgs/24/wave-sine-24.svg +3 -0
- package/icons/svgs/24/xmark-24.svg +3 -0
- package/index.d.ts +80 -40
- package/index.js +3 -3
- package/info-state/info-state.d.ts +50 -6
- package/info-state/info-state.js +3 -9
- package/info-state/info-state.module.css +1 -77
- package/input-group/input-group.d.ts +33 -3
- package/input-group/input-group.js +10 -14
- package/input-group/input-group.module.css +1 -33
- package/linear-progress/linear-progress.d.ts +33 -3
- package/linear-progress/linear-progress.js +6 -7
- package/linear-progress/linear-progress.module.css +1 -81
- package/list/list.d.ts +13 -0
- package/list/list.js +3 -4
- package/list/list.module.css +1 -55
- package/masonry/masonry.d.ts +22 -0
- package/masonry/masonry.js +5 -4
- package/masonry/masonry.module.css +1 -14
- package/modal/content/modal-content.d.ts +25 -0
- package/modal/content/modal-content.js +12 -0
- package/modal/content/modal-content.module.css +1 -0
- package/modal/index.d.ts +0 -1
- package/modal/index.js +0 -1
- package/modal/modal.d.ts +7 -5
- package/modal/modal.js +26 -24
- package/modal/modal.module.css +1 -48
- package/overlay-container/index.d.ts +3 -0
- package/overlay-container/index.js +2 -0
- package/overlay-container/overlay-container.d.ts +33 -0
- package/overlay-container/overlay-container.js +17 -0
- package/overlay-container/overlay-container.module.css +1 -0
- package/overlay-container/overlay-context.d.ts +9 -0
- package/overlay-container/overlay-context.js +23 -0
- package/package.json +85 -37
- package/pagination/pagination.d.ts +26 -2
- package/pagination/pagination.js +5 -4
- package/pagination/pagination.module.css +1 -31
- package/polymorphic/polymorphic.d.ts +26 -1
- package/prose/prose.js +3 -2
- package/prose/prose.module.css +1 -23
- package/select/select.d.ts +45 -3
- package/select/select.js +3 -6
- package/select/select.module.css +1 -108
- package/selection-controls/checkbox.d.ts +31 -3
- package/selection-controls/checkbox.js +3 -2
- package/selection-controls/radio.d.ts +23 -3
- package/selection-controls/radio.js +3 -2
- package/selection-controls/selection-controls.module.css +1 -119
- package/selection-controls/toggle.d.ts +23 -3
- package/selection-controls/toggle.js +3 -2
- package/separator/separator.d.ts +2 -2
- package/separator/separator.js +3 -2
- package/separator/separator.module.css +1 -6
- package/skeleton-block/skeleton-block.d.ts +4 -0
- package/skeleton-block/skeleton-block.js +2 -2
- package/slider/slider.d.ts +65 -3
- package/slider/slider.js +3 -7
- package/slider/slider.module.css +1 -101
- package/snackbar/snackbar.d.ts +28 -2
- package/snackbar/snackbar.js +4 -11
- package/snackbar/snackbar.module.css +1 -46
- package/spinner/spinner.d.ts +15 -3
- package/spinner/spinner.js +4 -7
- package/split-button/split-button.d.ts +4 -2
- package/split-button/split-button.js +4 -5
- package/split-button/split-button.module.css +1 -28
- package/stack/stack.d.ts +33 -0
- package/stack/stack.js +3 -2
- package/stack/stack.module.css +1 -27
- package/star-meter/star-meter.d.ts +21 -0
- package/star-meter/star-meter.js +7 -14
- package/star-meter/star-meter.module.css +1 -30
- package/tab/primitive-tab.d.ts +1 -1
- package/tab/primitive-tab.js +3 -3
- package/tab/tab-item.d.ts +17 -3
- package/tab/tab-item.js +3 -4
- package/tab/tab-list.d.ts +6 -2
- package/tab/tab-list.js +3 -3
- package/tab/tab-panel.d.ts +25 -3
- package/tab/tab-panel.js +3 -2
- package/tab/tab.d.ts +18 -1
- package/tab/tab.js +6 -8
- package/tab/tab.module.css +1 -103
- package/table/table.d.ts +13 -0
- package/table/table.js +7 -9
- package/table/table.module.css +1 -28
- package/text/text.d.ts +27 -0
- package/text/text.js +4 -3
- package/text/text.module.css +1 -82
- package/textfield/base-field/base-field.d.ts +9 -0
- package/textfield/base-field/base-field.js +3 -2
- package/textfield/base-field/base-field.module.css +1 -119
- package/textfield/textfield.d.ts +75 -5
- package/textfield/textfield.js +5 -9
- package/textfield/textfield.module.css +1 -103
- package/themes/dark.css +1 -1
- package/themes/light.css +1 -1
- package/themes.css +1 -143
- package/title/title.d.ts +21 -0
- package/title/title.js +4 -3
- package/title/title.module.css +1 -82
- package/toggle-button/toggle-button.d.ts +10 -0
- package/toggle-button/toggle-button.js +6 -5
- package/toggle-button/toggle-button.module.css +1 -51
- package/tooltip/tooltip.d.ts +32 -0
- package/tooltip/tooltip.js +18 -22
- package/tooltip/tooltip.module.css +1 -72
- package/core/vibrancy.css +0 -27
- package/dropdown/dropdown-item.d.ts +0 -21
- package/dropdown/dropdown-item.js +0 -26
- package/dropdown/dropdown-item.module.css +0 -63
- package/dropdown/dropdown-menu.d.ts +0 -7
- package/dropdown/dropdown-menu.js +0 -17
- package/dropdown/dropdown-menu.module.css +0 -13
- package/grid/grid-item.d.ts +0 -11
- package/grid/grid-item.js +0 -11
- package/modal/modal-content.d.ts +0 -7
- package/modal/modal-content.js +0 -15
- package/modal/modal-content.module.css +0 -40
- package/modal/modal-context.d.ts +0 -9
- package/modal/modal-context.js +0 -13
- package/theme-switch/index.d.ts +0 -2
- package/theme-switch/index.js +0 -1
- package/theme-switch/theme-switch.d.ts +0 -9
- package/theme-switch/theme-switch.js +0 -14
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
.DropdownItem {
|
|
2
|
-
border: 0;
|
|
3
|
-
background: none;
|
|
4
|
-
font: inherit;
|
|
5
|
-
font-size: env(--font-size-16);
|
|
6
|
-
color: var(--dimmed-6);
|
|
7
|
-
line-height: 1.2;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
inline-size: 100%;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
text-align: start;
|
|
13
|
-
position: relative;
|
|
14
|
-
|
|
15
|
-
&[aria-checked='true'] {
|
|
16
|
-
color: var(--global-interactive-text);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&::before {
|
|
20
|
-
content: '';
|
|
21
|
-
position: absolute;
|
|
22
|
-
border-radius: env(--radius-4);
|
|
23
|
-
top: 0;
|
|
24
|
-
left: env(--space-8);
|
|
25
|
-
right: env(--space-8);
|
|
26
|
-
bottom: 0;
|
|
27
|
-
opacity: 60%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:is(:hover, :focus-visible, [aria-pressed='true']):not([aria-disabled='true']) {
|
|
31
|
-
outline: none;
|
|
32
|
-
|
|
33
|
-
&::before {
|
|
34
|
-
background-color: var(--dimmed-1);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&[data-dropdown-item-dimension='small'] {
|
|
39
|
-
font-size: env(--font-size-14);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
& > * {
|
|
43
|
-
position: relative;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&[aria-disabled='true'] {
|
|
47
|
-
color: var(--global-disabled-foreground);
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
& [data-dropdown-padding='true'][data-dropdown-has-icon='false'][data-dropdown-icon-right='false'] {
|
|
52
|
-
padding-left: env(--space-40);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
& [data-dropdown-padding='true'][data-dropdown-has-icon='false'][data-dropdown-icon-right='true'] {
|
|
56
|
-
padding-right: env(--space-40);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
[data-dropdown-icon-right='true'] .Icon {
|
|
61
|
-
order: 2;
|
|
62
|
-
}
|
|
63
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
-
export declare type DropdownMenuProps = HTMLAttributes<HTMLUListElement> & {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare const DropdownMenu: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
} & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React, { Children, cloneElement, forwardRef } from 'react';
|
|
2
|
-
import { RovingTabIndexProvider } from 'react-roving-tabindex';
|
|
3
|
-
import { Stack, Elevator } from '../';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { DropdownMenu as DropdownMenuClass } from './dropdown-menu.module.css';
|
|
6
|
-
export const DropdownMenu = forwardRef(({ className, children, ...otherProps }, forwardedRef) => {
|
|
7
|
-
const renderedChildren = Children.toArray(children).filter(Boolean);
|
|
8
|
-
return (React.createElement(Elevator, { resting: 2 },
|
|
9
|
-
React.createElement(Stack, { as: "ul", ref: forwardedRef, className: clsx(DropdownMenuClass, className), role: "menu", ...otherProps },
|
|
10
|
-
React.createElement(RovingTabIndexProvider, { options: { direction: 'vertical', loopAround: true } }, Children.map(renderedChildren, (child, index) => {
|
|
11
|
-
var _a;
|
|
12
|
-
return (React.createElement(Stack, { as: "li", role: "none", verticalPadding: ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'Separator' ? 8 : undefined }, cloneElement(child, {
|
|
13
|
-
autoFocus: index === 0 && true
|
|
14
|
-
})));
|
|
15
|
-
})))));
|
|
16
|
-
});
|
|
17
|
-
DropdownMenu.displayName = 'Dropdown.Menu';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
.DropdownMenu {
|
|
2
|
-
list-style-type: none;
|
|
3
|
-
background-color: var(--global-background);
|
|
4
|
-
border: 1px solid var(--dimmed-1);
|
|
5
|
-
border-radius: env(--radius-8);
|
|
6
|
-
padding: env(--space-8) 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
position: relative;
|
|
9
|
-
|
|
10
|
-
& hr {
|
|
11
|
-
margin: 0 env(--space-8);
|
|
12
|
-
}
|
|
13
|
-
}
|
package/grid/grid-item.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type GridItemProps = PropsWithClass & {
|
|
3
|
-
fullWidth?: boolean;
|
|
4
|
-
column?: string;
|
|
5
|
-
row?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const GridItem: React.ForwardRefExoticComponent<PropsWithClass & {
|
|
8
|
-
fullWidth?: boolean | undefined;
|
|
9
|
-
column?: string | undefined;
|
|
10
|
-
row?: string | undefined;
|
|
11
|
-
} & React.RefAttributes<HTMLLIElement>>;
|
package/grid/grid-item.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { GridItem as GridItemClass } from './grid.module.css';
|
|
4
|
-
export const GridItem = forwardRef(({ children, style, className, fullWidth = false, column, row, ...otherProps }, forwardedRef) => {
|
|
5
|
-
const dynamicStyle = {
|
|
6
|
-
'--column': column,
|
|
7
|
-
'--row': row
|
|
8
|
-
};
|
|
9
|
-
return (React.createElement("li", { ref: forwardedRef, className: clsx(GridItemClass, className), style: { ...dynamicStyle, ...style }, "data-grid-item-fullwidth": fullWidth, ...otherProps }, children));
|
|
10
|
-
});
|
|
11
|
-
GridItem.displayName = 'Grid.Item';
|
package/modal/modal-content.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare type ModalContentProps = PropsWithClass & {
|
|
3
|
-
title: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare const ModalContent: React.ForwardRefExoticComponent<PropsWithClass & {
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
package/modal/modal-content.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import { Content, Header, CloseButton } from './modal-content.module.css';
|
|
4
|
-
import { Title, Elevator, IconButton, Stack } from '../';
|
|
5
|
-
import { useModalContext } from './modal-context';
|
|
6
|
-
export const ModalContent = forwardRef(({ children, className, title, ...otherProps }, forwardedRef) => {
|
|
7
|
-
const { onClose, titleId } = useModalContext();
|
|
8
|
-
return (React.createElement(Elevator, { resting: 4 },
|
|
9
|
-
React.createElement("div", { className: clsx(Content, className), ref: forwardedRef, "data-theme": "light", ...otherProps },
|
|
10
|
-
React.createElement(Stack, { as: "header", verticalAlign: "center", fill: false, horizontalAlign: "space-between", direction: "row", className: Header },
|
|
11
|
-
React.createElement(Title, { level: "5", id: titleId }, title),
|
|
12
|
-
onClose && React.createElement(IconButton, { onClick: onClose, className: CloseButton, icon: "xmark", kind: "flat" })),
|
|
13
|
-
children)));
|
|
14
|
-
});
|
|
15
|
-
ModalContent.displayName = 'Modal.Content';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
@import '../core/media.css';
|
|
2
|
-
|
|
3
|
-
.Content {
|
|
4
|
-
background-color: var(--global-background);
|
|
5
|
-
color: var(--global-foreground);
|
|
6
|
-
overscroll-behavior: contain;
|
|
7
|
-
inline-size: 100%;
|
|
8
|
-
overflow: auto;
|
|
9
|
-
-webkit-overflow-scrolling: touch;
|
|
10
|
-
max-block-size: 95vh;
|
|
11
|
-
border-radius: env(--radius-16) env(--radius-16) 0 0;
|
|
12
|
-
justify-self: center;
|
|
13
|
-
align-self: end;
|
|
14
|
-
|
|
15
|
-
@media (--from-extra-small) {
|
|
16
|
-
max-inline-size: 600px;
|
|
17
|
-
max-block-size: 80vh;
|
|
18
|
-
border-radius: env(--radius-8);
|
|
19
|
-
justify-self: center;
|
|
20
|
-
align-self: center;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.Header {
|
|
25
|
-
position: sticky;
|
|
26
|
-
top: 0;
|
|
27
|
-
background-color: inherit;
|
|
28
|
-
border-bottom: 1px solid var(--dimmed-1);
|
|
29
|
-
padding:
|
|
30
|
-
env(--space-16)
|
|
31
|
-
env(--space-80)
|
|
32
|
-
env(--space-16)
|
|
33
|
-
env(--space-24);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.CloseButton.CloseButton {
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: env(--space-8);
|
|
39
|
-
right: env(--space-8);
|
|
40
|
-
}
|
package/modal/modal-context.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModalProps } from '../modal';
|
|
3
|
-
declare type ModalContextProps = Pick<ModalProps, 'onClose' | 'visible'> & {
|
|
4
|
-
titleId: string;
|
|
5
|
-
setTitleId?(): void;
|
|
6
|
-
};
|
|
7
|
-
export declare const ModalContext: import("react").Context<ModalContextProps>;
|
|
8
|
-
export declare const useModalContext: () => ModalContextProps;
|
|
9
|
-
export {};
|
package/modal/modal-context.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from 'react';
|
|
2
|
-
export const ModalContext = createContext({
|
|
3
|
-
titleId: '',
|
|
4
|
-
onClose: () => { }
|
|
5
|
-
});
|
|
6
|
-
ModalContext.displayName = 'ModalContext';
|
|
7
|
-
export const useModalContext = () => {
|
|
8
|
-
const context = useContext(ModalContext);
|
|
9
|
-
if (!context) {
|
|
10
|
-
throw new Error('Modal component must be used inside ModalContext to access context data.');
|
|
11
|
-
}
|
|
12
|
-
return context;
|
|
13
|
-
};
|
package/theme-switch/index.d.ts
DELETED
package/theme-switch/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ThemeSwitch } from './theme-switch';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SelectProps } from '../';
|
|
3
|
-
import { Except } from 'type-fest';
|
|
4
|
-
export declare type ThemeSwitchProps = Except<SelectProps, 'children'> & {
|
|
5
|
-
currentTheme?: string;
|
|
6
|
-
onChange: SelectProps['onChange'];
|
|
7
|
-
dimension?: SelectProps['dimension'];
|
|
8
|
-
};
|
|
9
|
-
export declare const ThemeSwitch: ({ className, currentTheme, onChange, dimension }: ThemeSwitchProps) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Select } from '../';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
export const ThemeSwitch = ({ className, currentTheme = 'system', onChange, dimension }) => {
|
|
5
|
-
const icon = {
|
|
6
|
-
light: 'sun-bright',
|
|
7
|
-
system: 'pc',
|
|
8
|
-
dark: 'moon'
|
|
9
|
-
};
|
|
10
|
-
return (React.createElement(Select, { dimension: dimension, onChange: onChange, icon: currentTheme === 'system' ? icon.system : icon[currentTheme], defaultValue: currentTheme, className: clsx(className), "aria-label": "Change color scheme" },
|
|
11
|
-
React.createElement("option", { value: "light" }, "Light"),
|
|
12
|
-
React.createElement("option", { value: "system" }, "System"),
|
|
13
|
-
React.createElement("option", { value: "dark" }, "Dark")));
|
|
14
|
-
};
|