@wonderflow/react-components 3.0.0-next.1 → 3.0.0-next.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 +3 -3
- package/avatar/avatar.js +4 -7
- package/avatar/avatar.module.css +1 -31
- package/button/button.d.ts +4 -4
- package/button/button.js +8 -12
- package/button/button.module.css +1 -151
- package/card/card.d.ts +1 -1
- package/card/card.js +4 -7
- package/card/card.module.css +1 -51
- package/chip/chip.d.ts +10 -3
- package/chip/chip.js +4 -6
- package/chip/chip.module.css +1 -60
- package/circular-progress/circular-progress.d.ts +3 -3
- package/circular-progress/circular-progress.js +4 -3
- package/circular-progress/circular-progress.module.css +1 -55
- package/clamp-text/clamp-text.d.ts +1 -1
- package/clamp-text/clamp-text.js +4 -4
- package/clamp-text/clamp-text.module.css +1 -7
- package/container/container.js +4 -4
- package/container/container.module.css +1 -35
- package/core/basic.css +1 -49
- package/core/elevations.css +1 -56
- package/core/typography.css +1 -122
- package/core/{media.css → utils/media.css} +0 -0
- package/core/{vibrancy.css → utils/vibrancy.css} +0 -0
- package/core.css +1 -1
- package/disclosure/disclosure.d.ts +3 -3
- package/disclosure/disclosure.js +5 -8
- package/disclosure/disclosure.module.css +1 -93
- package/dropdown/dropdown-item.d.ts +1 -1
- package/dropdown/dropdown-item.js +8 -9
- package/dropdown/dropdown-item.module.css +1 -63
- package/dropdown/dropdown-menu.d.ts +4 -4
- package/dropdown/dropdown-menu.js +8 -6
- package/dropdown/dropdown-menu.module.css +1 -13
- package/dropdown/dropdown.d.ts +9 -19
- package/dropdown/dropdown.js +17 -17
- package/dropdown/dropdown.module.css +1 -9
- package/elevator/elevator.d.ts +2 -2
- package/elevator/elevator.js +6 -5
- package/grid/grid-item.d.ts +6 -2
- package/grid/grid-item.js +6 -4
- package/grid/grid.d.ts +6 -22
- package/grid/grid.js +5 -4
- package/grid/grid.module.css +1 -29
- package/grid/index.d.ts +1 -1
- package/grid/index.js +1 -1
- package/icon/icon.d.ts +3 -3
- package/icon/icon.js +4 -4
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.js +3 -3
- package/icon-button/icon-button.module.css +1 -22
- package/icons/all.svg +15 -7
- package/icons/structure.json +2 -0
- 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/icons/types.d.ts +4 -0
- package/index.d.ts +77 -39
- package/index.js +2 -3
- package/info-state/info-state.d.ts +12 -3
- package/info-state/info-state.js +4 -10
- package/info-state/info-state.module.css +1 -77
- package/input-group/input-group.d.ts +3 -3
- package/input-group/input-group.js +11 -15
- package/input-group/input-group.module.css +1 -36
- package/linear-progress/linear-progress.d.ts +4 -4
- package/linear-progress/linear-progress.js +7 -8
- package/linear-progress/linear-progress.module.css +1 -81
- package/list/list.d.ts +2 -1
- package/list/list.js +4 -6
- package/list/list.module.css +1 -48
- package/masonry/masonry.d.ts +2 -2
- package/masonry/masonry.js +6 -5
- package/masonry/masonry.module.css +1 -14
- package/modal/content/modal-content.d.ts +9 -0
- package/modal/content/modal-content.js +11 -0
- package/modal/content/modal-content.module.css +1 -0
- package/modal/index.d.ts +1 -1
- package/modal/index.js +1 -1
- package/modal/modal-context.d.ts +4 -4
- package/modal/modal-context.js +10 -0
- package/modal/modal.d.ts +6 -9
- package/modal/modal.js +8 -25
- package/modal/modal.module.css +1 -48
- package/overlay-container/index.d.ts +2 -0
- package/overlay-container/index.js +1 -0
- package/overlay-container/overlay-container.d.ts +7 -0
- package/overlay-container/overlay-container.js +13 -0
- package/package.json +47 -39
- package/pagination/pagination.d.ts +2 -4
- package/pagination/pagination.js +4 -3
- package/pagination/pagination.module.css +1 -31
- package/prose/prose.js +4 -4
- package/prose/prose.module.css +1 -23
- package/select/select.d.ts +3 -3
- package/select/select.js +4 -7
- package/select/select.module.css +1 -108
- package/selection-controls/checkbox.d.ts +3 -3
- package/selection-controls/checkbox.js +4 -3
- package/selection-controls/radio.d.ts +3 -3
- package/selection-controls/radio.js +4 -3
- package/selection-controls/selection-controls.module.css +1 -119
- package/selection-controls/toggle.d.ts +3 -3
- package/selection-controls/toggle.js +4 -3
- package/separator/index.d.ts +1 -0
- package/separator/separator.d.ts +3 -2
- package/separator/separator.js +4 -3
- package/separator/separator.module.css +1 -6
- package/skeleton-block/skeleton-block.d.ts +1 -1
- package/skeleton-block/skeleton-block.js +3 -3
- package/slider/slider.d.ts +3 -3
- package/slider/slider.js +4 -8
- package/slider/slider.module.css +1 -101
- package/snackbar/snackbar.js +4 -12
- package/snackbar/snackbar.module.css +1 -46
- package/spinner/spinner.d.ts +4 -1
- package/spinner/spinner.js +7 -9
- package/split-button/split-button.js +4 -6
- package/split-button/split-button.module.css +1 -28
- package/stack/stack.js +4 -4
- package/stack/stack.module.css +1 -27
- package/star-meter/star-meter.d.ts +1 -1
- package/star-meter/star-meter.js +5 -14
- package/star-meter/star-meter.module.css +1 -30
- package/tab/index.d.ts +1 -1
- package/tab/index.js +1 -1
- package/tab/primitive-tab.d.ts +1 -1
- package/tab/primitive-tab.js +3 -3
- package/tab/tab-item.d.ts +4 -2
- package/tab/tab-item.js +6 -7
- package/tab/tab-list.d.ts +3 -2
- package/tab/tab-list.js +4 -3
- package/tab/tab-panel.d.ts +5 -2
- package/tab/tab-panel.js +5 -3
- package/tab/tab.d.ts +11 -9
- package/tab/tab.js +11 -14
- package/tab/tab.module.css +1 -103
- package/table/table.d.ts +3 -3
- package/table/table.js +9 -12
- package/table/table.module.css +1 -32
- package/text/text.d.ts +1 -1
- package/text/text.js +4 -4
- package/text/text.module.css +1 -89
- package/textfield/base-field/base-field.d.ts +1 -0
- package/textfield/base-field/base-field.js +4 -3
- package/textfield/base-field/base-field.module.css +1 -119
- package/textfield/base-field/index.d.ts +1 -1
- package/textfield/textfield.d.ts +6 -6
- package/textfield/textfield.js +6 -10
- 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 +1 -1
- package/title/title.js +4 -4
- package/title/title.module.css +1 -85
- package/toggle-button/toggle-button.js +7 -7
- package/toggle-button/toggle-button.module.css +1 -37
- package/tooltip/tooltip.d.ts +2 -2
- package/tooltip/tooltip.js +6 -10
- package/tooltip/tooltip.module.css +1 -72
- package/modal/modal-content.d.ts +0 -7
- package/modal/modal-content.js +0 -15
- package/modal/modal-content.module.css +0 -40
- 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
package/title/title.module.css
CHANGED
|
@@ -1,85 +1 @@
|
|
|
1
|
-
.Title {
|
|
2
|
-
&:is(.H1, .H2, .H3, .H4, .H5, .H6, .Display) {
|
|
3
|
-
display: block;
|
|
4
|
-
line-height: env(--font-lh-small);
|
|
5
|
-
color: var(--heading-foreground);
|
|
6
|
-
min-block-size: 0.01vh;
|
|
7
|
-
font-size: var(--fluid-type-max);
|
|
8
|
-
max-inline-size: var(--maxW, initial);
|
|
9
|
-
text-align: var(--tAlign);
|
|
10
|
-
overflow-wrap: break-word;
|
|
11
|
-
|
|
12
|
-
&[data-title-is-fluid='true'] {
|
|
13
|
-
font-size:
|
|
14
|
-
clamp(
|
|
15
|
-
var(--fluid-type-min, env(--font-size-16)),
|
|
16
|
-
var(--fluid-type-factor, calc(0.6rem + 0.92vw)),
|
|
17
|
-
var(--fluid-type-max, 1rem)
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&[data-title-line-height='none'] {
|
|
22
|
-
line-height: 0.3;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&[data-title-line-height='small'] {
|
|
26
|
-
line-height: 1;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:is(.H6) {
|
|
31
|
-
--fluid-type-min: env(--font-size-14);
|
|
32
|
-
--fluid-type-factor: calc(env(--font-size-16) + 0.44vw);
|
|
33
|
-
--fluid-type-max: env(--font-size-18);
|
|
34
|
-
|
|
35
|
-
font-weight: 700;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:is(.H5) {
|
|
39
|
-
--fluid-type-min: 1rem;
|
|
40
|
-
--fluid-type-factor: calc(0.76rem + 1.32vw);
|
|
41
|
-
--fluid-type-max: 1.33rem;
|
|
42
|
-
|
|
43
|
-
font-weight: 700;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:is(.H4) {
|
|
47
|
-
--fluid-type-min: 1.33rem;
|
|
48
|
-
--fluid-type-factor: calc(1.01rem + 1.76vw);
|
|
49
|
-
--fluid-type-max: 1.77rem;
|
|
50
|
-
|
|
51
|
-
font-weight: 700;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:is(.H3) {
|
|
55
|
-
--fluid-type-min: 1.77rem;
|
|
56
|
-
--fluid-type-factor: calc(1.35rem + 2.37vw);
|
|
57
|
-
--fluid-type-max: 2.37rem;
|
|
58
|
-
|
|
59
|
-
font-weight: 800;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:is(.H2) {
|
|
63
|
-
--fluid-type-min: 2.37rem;
|
|
64
|
-
--fluid-type-factor: calc(1.8rem + 3.17vw);
|
|
65
|
-
--fluid-type-max: 3.16rem;
|
|
66
|
-
|
|
67
|
-
font-weight: 800;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:is(.H1) {
|
|
71
|
-
--fluid-type-min: 3.16rem;
|
|
72
|
-
--fluid-type-factor: calc(2.23rem + 4.17vw);
|
|
73
|
-
--fluid-type-max: 4.2rem;
|
|
74
|
-
|
|
75
|
-
font-weight: 800;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.Display {
|
|
79
|
-
--fluid-type-min: 4.2rem;
|
|
80
|
-
--fluid-type-factor: calc(3.19rem + 5.66vw);
|
|
81
|
-
--fluid-type-max: 5.6rem;
|
|
82
|
-
|
|
83
|
-
font-weight: 800;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
.Title:is(.H1,.H2,.H3,.H4,.H5,.H6,.Display){--lh:0.3;color:var(--heading-foreground);display:block;font-size:var(--fs-max);line-height:1.2;max-inline-size:var(--maxW,initial);min-block-size:.01vh;overflow-wrap:break-word;text-align:var(--tAlign)}.Title:is(.H1,.H2,.H3,.H4,.H5,.H6,.Display)[data-title-line-height=small]{--lh:1.33}.Title:is(.H6){--fs-min:0.78rem;--fs-max:1.00rem;font-weight:700}.Title:is(.H5){--fs-min:1rem;--fs-max:1.33rem;font-weight:700}.Title:is(.H4){--fs-min:1.33rem;--fs-max:1.77rem;font-weight:700}.Title:is(.H3){--fs-min:1.77rem;--fs-max:2.37rem;font-weight:800}.Title:is(.H3):before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title:is(.H2){--fs-min:2.37rem;--fs-max:3.16rem;font-weight:800}.Title:is(.H2):before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title:is(.H1){--fs-min:3.16rem;--fs-max:4.2rem;font-weight:800}.Title:is(.H1):before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title.Display{--fs-min:4.2rem;--fs-max:5.6rem;font-weight:800}.Title.Display:before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title[data-title-responsive=true]{font-size:var(--fs-min)}@media (min-width:48em){.Title[data-title-responsive=true]{font-size:var(--fs-max)}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
2
3
|
import { ToggleButton as ToggleButtonClass } from './toggle-button.module.css';
|
|
3
4
|
import { IconButton, Icon } from '../';
|
|
4
5
|
import clsx from 'clsx';
|
|
@@ -21,7 +22,7 @@ const scaleAnimation = {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
|
-
export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, dimension, kind, disabled, pressed = false, onClick, ...
|
|
25
|
+
export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, dimension, kind, disabled, iconColor, pressed = false, onClick, ...otherProps }, forwardedRef) => {
|
|
25
26
|
const [isPressed, setIsPressed] = useState(pressed);
|
|
26
27
|
const [firstRender, setFirstRender] = useState(true);
|
|
27
28
|
useEffect(() => {
|
|
@@ -37,10 +38,9 @@ export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, d
|
|
|
37
38
|
regular: 16,
|
|
38
39
|
small: 16
|
|
39
40
|
};
|
|
40
|
-
return (
|
|
41
|
+
return (_jsx(Icon, { name: icon, dimension: iconSize[dimension] }, void 0));
|
|
41
42
|
}, []);
|
|
42
|
-
return (
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
return (_jsx(IconButton, { as: "button", ref: forwardedRef, dimension: dimension, "aria-pressed": isPressed, kind: kind, disabled: disabled, onClick: handleClick, className: clsx(ToggleButtonClass, className), ...otherProps, children: isPressed && pressedIcon
|
|
44
|
+
? (_jsx(motion.span, { variants: scaleAnimation, initial: firstRender && isPressed ? false : 'scaleOut', animate: "scaleIn", children: renderIcon(pressedIcon, dimension) }, "pressedIcon"))
|
|
45
|
+
: restingIcon && (_jsx(motion.span, { variants: scaleAnimation, initial: firstRender && !isPressed ? false : 'scaleOut', animate: "scaleIn", children: renderIcon(restingIcon, dimension) }, "restingIcon")) }, void 0));
|
|
45
46
|
});
|
|
46
|
-
ToggleButton.displayName = 'ToggleButton';
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
.ToggleButton {
|
|
2
|
-
border-radius: 200px;
|
|
3
|
-
line-height: 1;
|
|
4
|
-
padding: 0;
|
|
5
|
-
transition: box-shadow env(--duration-300) env(--easing-entrance);
|
|
6
|
-
|
|
7
|
-
&[aria-pressed='true'] {
|
|
8
|
-
box-shadow:
|
|
9
|
-
0 0 0 var(--border-width) var(--border-color),
|
|
10
|
-
0 0 0 var(--border-width) var(--border-color),
|
|
11
|
-
inset 0 0 0 calc(var(--border-width) / 2) hsl(0deg 0% 0% / 20%);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&[data-button-kind='primary'] {
|
|
15
|
-
--border-color: hsl(env(--color-red-30) / 25%);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&[data-button-kind='secondary'] {
|
|
19
|
-
--border-color: var(--dimmed-2);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&[data-button-kind='flat'] {
|
|
23
|
-
--border-color: var(--dimmed-2);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&[data-button-dimension='small'] {
|
|
27
|
-
--border-width: 2px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&[data-button-dimension='regular'] {
|
|
31
|
-
--border-width: 4px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&[data-button-dimension='big'] {
|
|
35
|
-
--border-width: 6px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
.ToggleButton{border-radius:200px;line-height:1;padding:0;transition:box-shadow .3s cubic-bezier(0,0,.34,1)}.ToggleButton[aria-pressed=true]{box-shadow:0 0 0 var(--border-width) var(--border-color),0 0 0 var(--border-width) var(--border-color)}.ToggleButton[data-button-kind=primary]{--border-color:#cf2a4340}.ToggleButton[data-button-kind=primary][aria-pressed=true]{background:none;color:var(--cta-default)}.ToggleButton[data-button-kind=secondary]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=secondary][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-kind=flat]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=flat][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-dimension=small]{--border-width:2px}.ToggleButton[data-button-dimension=regular]{--border-width:4px}.ToggleButton[data-button-dimension=big]{--border-width:6px}
|
package/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AutoPlacement, BasePlacement, VariationPlacement } from '@popperjs/core/lib';
|
|
3
3
|
export declare type TooltipProps = PropsWithClass & {
|
|
4
4
|
children: ReactNode;
|
|
@@ -9,4 +9,4 @@ export declare type TooltipProps = PropsWithClass & {
|
|
|
9
9
|
maxWidth?: string;
|
|
10
10
|
fill?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const Tooltip:
|
|
12
|
+
export declare const Tooltip: FC<TooltipProps>;
|
package/tooltip/tooltip.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Children, cloneElement, useState } from 'react';
|
|
2
3
|
import { useUIDSeed } from 'react-uid';
|
|
3
4
|
import { useKey } from 'react-use';
|
|
4
5
|
import { Elevator } from '../';
|
|
@@ -33,13 +34,8 @@ export const Tooltip = ({ children, trigger, placement = 'bottom-start', show, s
|
|
|
33
34
|
const dynamycStyle = {
|
|
34
35
|
'--maxW': maxWidth
|
|
35
36
|
};
|
|
36
|
-
return (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})),
|
|
41
|
-
visible && (React.createElement(Elevator, { resting: 2 },
|
|
42
|
-
React.createElement("div", { ref: setTooltipRef, role: "tooltip", id: seedID('tooltip-content'), "data-theme": "dark", ...getTooltipProps({ className: TooltipClass, style: dynamycStyle }) },
|
|
43
|
-
children,
|
|
44
|
-
React.createElement("div", { ...getArrowProps({ className: Arrow }) }))))));
|
|
37
|
+
return (_jsxs("div", { "data-tooltip-fill": fill, className: Trigger, ...focusWithinProps, style: { ...style }, children: [Children.map(trigger, (child) => cloneElement(child, {
|
|
38
|
+
ref: setTriggerRef,
|
|
39
|
+
'aria-describedby': seedID('tooltip-content')
|
|
40
|
+
})), visible && (_jsx(Elevator, { resting: 2, children: _jsxs("div", { ref: setTooltipRef, role: "tooltip", id: seedID('tooltip-content'), "data-theme": "dark", ...getTooltipProps({ className: TooltipClass, style: dynamycStyle }), children: [children, _jsx("div", { ...getArrowProps({ className: Arrow }) }, void 0)] }, void 0) }, void 0))] }, void 0));
|
|
45
41
|
};
|
|
@@ -1,72 +1 @@
|
|
|
1
|
-
.Tooltip {
|
|
2
|
-
position: relative;
|
|
3
|
-
padding: env(--space-8) env(--space-16);
|
|
4
|
-
border-radius: env(--radius-4);
|
|
5
|
-
background-color: hsl(env(--color-primary-80));
|
|
6
|
-
font-size: env(--font-size-16);
|
|
7
|
-
max-inline-size: var(--maxW);
|
|
8
|
-
word-wrap: break-word;
|
|
9
|
-
|
|
10
|
-
/* max-inline-size: var(--w, 40ch); */
|
|
11
|
-
z-index: 2;
|
|
12
|
-
|
|
13
|
-
&[data-popper-reference-hidden='true'] {
|
|
14
|
-
visibility: hidden;
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.Trigger {
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
|
|
22
|
-
&[data-tooltip-fill='true'] {
|
|
23
|
-
display: flex;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.Arrow {
|
|
29
|
-
&::before {
|
|
30
|
-
content: '';
|
|
31
|
-
position: absolute;
|
|
32
|
-
inline-size: 12px;
|
|
33
|
-
block-size: 12px;
|
|
34
|
-
background-color: hsl(env(--color-primary-80));
|
|
35
|
-
visibility: visible;
|
|
36
|
-
transform: rotate(45deg);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@nest .Tooltip[data-popper-reference-hidden='true'] & {
|
|
40
|
-
visibility: hidden;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
}
|
|
43
|
-
@nest .Tooltip[data-popper-placement^='top'] & {
|
|
44
|
-
bottom: 6px;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
&::before {
|
|
48
|
-
transform: translateX(-50%) rotate(45deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
@nest .Tooltip[data-popper-placement^='left'] & {
|
|
52
|
-
right: 6px;
|
|
53
|
-
|
|
54
|
-
&::before {
|
|
55
|
-
transform: translateY(-50%) rotate(45deg);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
@nest .Tooltip[data-popper-placement^='bottom'] & {
|
|
59
|
-
top: -6px;
|
|
60
|
-
|
|
61
|
-
&::before {
|
|
62
|
-
transform: translateX(-50%) rotate(45deg);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
@nest .Tooltip[data-popper-placement^='right'] & {
|
|
66
|
-
left: -6px;
|
|
67
|
-
|
|
68
|
-
&::before {
|
|
69
|
-
transform: translateY(-50%) rotate(45deg);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
.Tooltip{word-wrap:break-word;background-color:#31363f;border-radius:.22rem;font-size:.89rem;max-inline-size:var(--maxW);padding:.44rem .89rem;position:relative;z-index:2}.Tooltip[data-popper-reference-hidden=true]{pointer-events:none;visibility:hidden}.Trigger{display:inline-flex}.Trigger[data-tooltip-fill=true]{display:flex}.Arrow:before{background-color:#31363f;block-size:12px;content:"";inline-size:12px;position:absolute;transform:rotate(45deg);visibility:visible}.Tooltip[data-popper-reference-hidden=true] .Arrow{pointer-events:none;visibility:hidden}.Tooltip[data-popper-placement^=top] .Arrow{bottom:6px}.Tooltip[data-popper-placement^=top] .Arrow:before{transform:translateX(-50%) rotate(45deg)}.Tooltip[data-popper-placement^=left] .Arrow{right:6px}.Tooltip[data-popper-placement^=left] .Arrow:before{transform:translateY(-50%) rotate(45deg)}.Tooltip[data-popper-placement^=bottom] .Arrow{top:-6px}.Tooltip[data-popper-placement^=bottom] .Arrow:before{transform:translateX(-50%) rotate(45deg)}.Tooltip[data-popper-placement^=right] .Arrow{left:-6px}.Tooltip[data-popper-placement^=right] .Arrow:before{transform:translateY(-50%) rotate(45deg)}
|
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, ...props }, 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", ...props },
|
|
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/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
|
-
};
|