ropav 0.0.9 → 0.0.11
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/README.md +6 -0
- package/dist/accordion.css +115 -111
- package/dist/accordion.js +60 -16
- package/dist/alert.css +110 -108
- package/dist/alert.js +48 -26
- package/dist/aspect-ratio.css +17 -15
- package/dist/aspect-ratio.js +20 -6
- package/dist/avatar.css +98 -96
- package/dist/avatar.js +27 -16
- package/dist/badge.css +95 -93
- package/dist/badge.js +29 -16
- package/dist/base.css +672 -671
- package/dist/button-group.css +39 -37
- package/dist/button-group.js +23 -12
- package/dist/button-link.css +160 -158
- package/dist/button-link.js +43 -24
- package/dist/button.css +160 -158
- package/dist/button.js +37 -19
- package/dist/card.css +109 -107
- package/dist/card.js +42 -17
- package/dist/checkbox.css +139 -137
- package/dist/checkbox.js +79 -28
- package/dist/collapse.css +29 -27
- package/dist/collapse.js +44 -10
- package/dist/color-input.css +137 -107
- package/dist/color-input.js +91 -17
- package/dist/color-picker.css +309 -303
- package/dist/color-picker.js +250 -77
- package/dist/color-picker2.js +9 -1
- package/dist/color-swatch.css +48 -46
- package/dist/color-swatch.js +15 -11
- package/dist/color-swatch2.js +4 -0
- package/dist/components/accordion/accordion-item.d.ts +16 -4
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +5 -4
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/accordion/types.d.ts +10 -5
- package/dist/components/accordion/useAccordion.d.ts +1 -1
- package/dist/components/alert/alert.d.ts +3 -3
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/index.js +2 -2
- package/dist/components/alert/types.d.ts +5 -2
- package/dist/components/alert/useAlertColor.d.ts +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/aspect-ratio/index.d.ts +3 -2
- package/dist/components/aspect-ratio/index.js +2 -2
- package/dist/components/aspect-ratio/types.d.ts +4 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/avatar/types.d.ts +5 -2
- package/dist/components/avatar/useAvatarColor.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.js +2 -2
- package/dist/components/badge/types.d.ts +5 -2
- package/dist/components/badge/useBadgeColor.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.d.ts +3 -2
- package/dist/components/button/index.js +2 -2
- package/dist/components/button/types.d.ts +5 -2
- package/dist/components/button/useButtonColor.d.ts +1 -1
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +3 -2
- package/dist/components/button-group/index.js +2 -2
- package/dist/components/button-group/types.d.ts +4 -1
- package/dist/components/button-link/button-link.d.ts +1 -1
- package/dist/components/button-link/index.d.ts +3 -2
- package/dist/components/button-link/index.js +2 -2
- package/dist/components/button-link/types.d.ts +5 -2
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/index.d.ts +3 -2
- package/dist/components/card/index.js +2 -2
- package/dist/components/card/types.d.ts +5 -1
- package/dist/components/checkbox/checkbox.d.ts +5 -2
- package/dist/components/checkbox/index.d.ts +3 -2
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/checkbox/types.d.ts +7 -2
- package/dist/components/checkbox/useCheckbox.d.ts +4 -2
- package/dist/components/collapse/collapse.d.ts +2 -2
- package/dist/components/collapse/index.d.ts +4 -3
- package/dist/components/collapse/index.js +2 -2
- package/dist/components/collapse/types.d.ts +9 -2
- package/dist/components/collapse/useCollapse.d.ts +1 -1
- package/dist/components/color-input/color-input.d.ts +1 -1
- package/dist/components/color-input/index.d.ts +3 -2
- package/dist/components/color-input/index.js +2 -2
- package/dist/components/color-input/types.d.ts +8 -4
- package/dist/components/color-input/useColorInput.d.ts +5 -5
- package/dist/components/color-input/useColorInputEyeDropper.d.ts +1 -1
- package/dist/components/color-input/useColorInputPopover.d.ts +2 -2
- package/dist/components/color-input/useColorInputValue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-saturation.d.ts +1 -1
- package/dist/components/color-picker/color-picker-slider.d.ts +1 -1
- package/dist/components/color-picker/color-picker-utils.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.d.ts +3 -3
- package/dist/components/color-picker/index.js +2 -2
- package/dist/components/color-picker/types.d.ts +13 -1
- package/dist/components/color-picker/useColorPickerDrag.d.ts +7 -2
- package/dist/components/color-picker/useColorPickerSwatches.d.ts +1 -1
- package/dist/components/color-picker/useColorPickerValue.d.ts +2 -2
- package/dist/components/color-swatch/color-swatch.d.ts +1 -1
- package/dist/components/color-swatch/index.d.ts +3 -2
- package/dist/components/color-swatch/index.js +2 -1
- package/dist/components/color-swatch/types.d.ts +4 -1
- package/dist/components/dropdown-menu/dropdown-menu-items.d.ts +15 -6
- package/dist/components/dropdown-menu/dropdown-menu-primitives.d.ts +724 -0
- package/dist/components/dropdown-menu/dropdown-menu-utils.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/dist/components/dropdown-menu/index.d.ts +55 -3
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/dropdown-menu/types.d.ts +142 -6
- package/dist/components/dropdown-menu/useDropdownMenu.d.ts +21 -12
- package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +6 -4
- package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +4 -3
- package/dist/components/dropdown-menu/useDropdownMenuHoverIntent.d.ts +2 -2
- package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +5 -5
- package/dist/components/dropdown-menu/useDropdownMenuNavigation.d.ts +3 -3
- package/dist/components/dropdown-menu/useDropdownMenuPortalPosition.d.ts +19 -0
- package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +25 -5
- package/dist/components/dropdown-menu/useDropdownSubmenus.d.ts +3 -3
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/field/index.d.ts +3 -2
- package/dist/components/field/index.js +2 -2
- package/dist/components/field/types.d.ts +4 -1
- package/dist/components/field/useField.d.ts +1 -1
- package/dist/components/floating/index.d.ts +1 -0
- package/dist/components/floating/index.js +0 -0
- package/dist/components/floating/types.d.ts +31 -0
- package/dist/components/floating/useFloatingPosition.d.ts +38 -0
- package/dist/components/focus-trap/focus-trap.d.ts +31 -0
- package/dist/components/focus-trap/index.d.ts +4 -0
- package/dist/components/focus-trap/index.js +3 -0
- package/dist/components/focus-trap/types.d.ts +41 -0
- package/dist/components/focus-trap/useFocusTrap.d.ts +2 -0
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/index.d.ts +3 -2
- package/dist/components/icon-button/index.js +2 -1
- package/dist/components/icon-button/types.d.ts +5 -2
- package/dist/components/input/index.d.ts +3 -2
- package/dist/components/input/index.js +2 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/types.d.ts +4 -1
- package/dist/components/input/useInput.d.ts +2 -2
- package/dist/components/modal/index.d.ts +3 -2
- package/dist/components/modal/index.js +2 -2
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/types.d.ts +9 -2
- package/dist/components/modal/useModal.d.ts +1 -1
- package/dist/components/number-input/index.d.ts +3 -2
- package/dist/components/number-input/index.js +2 -2
- package/dist/components/number-input/number-input.d.ts +1 -1
- package/dist/components/number-input/types.d.ts +5 -2
- package/dist/components/number-input/useNumberInput.d.ts +2 -2
- package/dist/components/overlay/index.d.ts +3 -2
- package/dist/components/overlay/index.js +2 -1
- package/dist/components/overlay/overlay.d.ts +1 -1
- package/dist/components/overlay/types.d.ts +4 -1
- package/dist/components/overlay/useOverlay.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/types.d.ts +21 -11
- package/dist/components/popover/usePopover.d.ts +11 -2
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/progress/index.js +2 -2
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/types.d.ts +5 -2
- package/dist/components/progress/useProgress.d.ts +2 -2
- package/dist/components/radio/index.d.ts +4 -3
- package/dist/components/radio/index.js +2 -2
- package/dist/components/radio/radio-group.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +9 -4
- package/dist/components/radio/types.d.ts +21 -4
- package/dist/components/radio/useRadio.d.ts +10 -5
- package/dist/components/select/index.d.ts +3 -2
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/types.d.ts +4 -1
- package/dist/components/select/useSelect.d.ts +4 -3
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/range-slider-tooltip.d.ts +37 -0
- package/dist/components/slider/range-slider.d.ts +8 -13
- package/dist/components/slider/slider.d.ts +5 -2
- package/dist/components/slider/sliderCore.d.ts +35 -0
- package/dist/components/slider/types.d.ts +14 -7
- package/dist/components/slider/useRangeSlider.d.ts +5 -7
- package/dist/components/slider/useRangeSliderPointer.d.ts +19 -0
- package/dist/components/slider/useRangeSliderTooltipCollision.d.ts +31 -2
- package/dist/components/slider/useRangeSliderTooltipState.d.ts +23 -0
- package/dist/components/slider/useSlider.d.ts +11 -15
- package/dist/components/switch/index.d.ts +3 -2
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.d.ts +5 -2
- package/dist/components/switch/types.d.ts +7 -2
- package/dist/components/switch/useSwitch.d.ts +4 -2
- package/dist/components/tabs/index.d.ts +7 -6
- package/dist/components/tabs/index.js +2 -2
- package/dist/components/tabs/tabs-content.d.ts +2 -2
- package/dist/components/tabs/tabs-list.d.ts +4 -4
- package/dist/components/tabs/tabs-trigger.d.ts +5 -5
- package/dist/components/tabs/tabs.d.ts +5 -5
- package/dist/components/tabs/types.d.ts +13 -4
- package/dist/components/tabs/useTabs.d.ts +1 -1
- package/dist/components/teleport-provider/index.d.ts +2 -0
- package/dist/components/teleport-provider/index.js +2 -0
- package/dist/components/teleport-provider/teleport-provider.d.ts +21 -0
- package/dist/components/teleport-provider/types.d.ts +4 -0
- package/dist/components/teleport-provider/useTeleportTarget.d.ts +5 -0
- package/dist/components/textarea/index.d.ts +3 -2
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/textarea/textarea.d.ts +5 -2
- package/dist/components/textarea/types.d.ts +6 -1
- package/dist/components/textarea/useTextarea.d.ts +3 -2
- package/dist/components/toast/defaults.d.ts +7 -0
- package/dist/components/toast/index.d.ts +7 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/toast-provider.d.ts +21 -0
- package/dist/components/toast/toast-viewport.d.ts +34 -0
- package/dist/components/toast/toast.d.ts +31 -0
- package/dist/components/toast/types.d.ts +110 -0
- package/dist/components/toast/useToast.d.ts +4 -0
- package/dist/components/toast/useToastColor.d.ts +3 -0
- package/dist/components/toast/useToastState.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts +3 -2
- package/dist/components/tooltip/index.js +2 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/types.d.ts +14 -13
- package/dist/components/tooltip/useTooltip.d.ts +15 -3
- package/dist/dropdown-menu.css +191 -107
- package/dist/dropdown-menu.js +1729 -107
- package/dist/field.css +41 -39
- package/dist/field.js +40 -16
- package/dist/focus-trap.js +80 -0
- package/dist/icon-button.css +193 -189
- package/dist/icon-button.js +23 -18
- package/dist/icon-button2.js +8 -0
- package/dist/index.d.ts +35 -30
- package/dist/index.js +36 -31
- package/dist/input.css +122 -120
- package/dist/input.js +47 -34
- package/dist/input2.js +9 -0
- package/dist/legacy-unlayered.css +5461 -0
- package/dist/modal.css +129 -127
- package/dist/modal.js +160 -200
- package/dist/number-input.css +87 -85
- package/dist/number-input.js +61 -17
- package/dist/overlay.css +26 -24
- package/dist/overlay.js +17 -9
- package/dist/overlay2.js +4 -0
- package/dist/popover.css +140 -107
- package/dist/popover.js +295 -189
- package/dist/popover2.js +6 -1
- package/dist/progress.css +101 -99
- package/dist/progress.js +50 -28
- package/dist/radio.css +114 -105
- package/dist/radio.js +154 -56
- package/dist/select.css +244 -242
- package/dist/select.js +92 -47
- package/dist/slider.css +1109 -904
- package/dist/slider.js +1118 -923
- package/dist/styles-api.d.ts +22 -0
- package/dist/styles-api.js +49 -0
- package/dist/switch.css +120 -108
- package/dist/switch.js +89 -33
- package/dist/tabs.css +286 -278
- package/dist/tabs.js +60 -21
- package/dist/teleport-provider.js +15 -0
- package/dist/textarea.css +132 -130
- package/dist/textarea.js +77 -29
- package/dist/toast.css +236 -0
- package/dist/toast.js +739 -0
- package/dist/tooltip.css +137 -107
- package/dist/tooltip.js +182 -223
- package/dist/tooltip2.js +8 -0
- package/dist/useClickOutside.js +1 -1
- package/dist/useFloatingPosition.js +1284 -0
- package/dist/useFocusTrap.js +130 -0
- package/dist/useTeleportTarget.js +29 -0
- package/dist/utils/componentColors.d.ts +60 -0
- package/docs/public-styles-api.md +133 -0
- package/docs/public-tokens.md +545 -0
- package/package.json +44 -12
- package/src/styles/_tokens.scss +33 -28
- package/src/styles/_utilities.scss +11 -9
- package/src/styles/styles-manifest.json +4125 -0
- package/dist/components/slider/useRangeSliderTooltipTransition.d.ts +0 -4
package/dist/progress.css
CHANGED
|
@@ -1,104 +1,106 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
1
|
+
@layer ropav.components {
|
|
2
|
+
.rp-progress[data-v-70bd0dd5] {
|
|
3
|
+
--_rp-progress-color: var(--rp-color-control-selected-bg);
|
|
4
|
+
--_rp-progress-track-bg: var(--rp-color-control-track-bg);
|
|
5
|
+
--_rp-progress-track-height: 8px;
|
|
6
|
+
--_rp-progress-font-size: var(--rp-font-size-md);
|
|
7
|
+
--_rp-progress-radius: var(--rp-radius-full);
|
|
8
|
+
--_rp-progress-value: 0%;
|
|
9
|
+
--_rp-progress-ratio: 0;
|
|
10
|
+
display: grid;
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
gap: var(--rp-spacing-2);
|
|
14
|
+
font-family: var(--rp-font-family);
|
|
15
|
+
font-size: var(--_rp-progress-font-size);
|
|
16
|
+
line-height: var(--rp-line-height-md);
|
|
17
|
+
}
|
|
18
|
+
.rp-progress__header[data-v-70bd0dd5] {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
gap: var(--rp-spacing-3);
|
|
24
|
+
}
|
|
25
|
+
.rp-progress__label[data-v-70bd0dd5] {
|
|
26
|
+
min-width: 0;
|
|
27
|
+
color: var(--rp-color-text);
|
|
28
|
+
}
|
|
29
|
+
.rp-progress__value[data-v-70bd0dd5] {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
color: var(--rp-color-dimmed);
|
|
32
|
+
font-variant-numeric: tabular-nums;
|
|
33
|
+
}
|
|
34
|
+
.rp-progress__track[data-v-70bd0dd5] {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: block;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: var(--_rp-progress-track-height);
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
background: var(--_rp-progress-track-bg);
|
|
41
|
+
border-radius: var(--_rp-progress-radius);
|
|
42
|
+
}
|
|
43
|
+
.rp-progress__indicator[data-v-70bd0dd5] {
|
|
44
|
+
display: block;
|
|
45
|
+
width: var(--_rp-progress-value);
|
|
46
|
+
height: 100%;
|
|
47
|
+
background: var(--_rp-progress-color);
|
|
48
|
+
border-radius: inherit;
|
|
49
|
+
transition: width var(--rp-transition-base);
|
|
50
|
+
}
|
|
51
|
+
.rp-progress--indeterminate .rp-progress__indicator[data-v-70bd0dd5] {
|
|
52
|
+
position: absolute;
|
|
53
|
+
width: 38%;
|
|
54
|
+
min-width: 2rem;
|
|
55
|
+
animation: rp-progress-indeterminate-70bd0dd5 1200ms ease-in-out infinite;
|
|
56
|
+
}
|
|
57
|
+
.rp-progress--size-xs[data-v-70bd0dd5] {
|
|
58
|
+
--_rp-progress-track-height: 3px;
|
|
59
|
+
--_rp-progress-font-size: var(--rp-font-size-xs);
|
|
60
|
+
}
|
|
61
|
+
.rp-progress--size-sm[data-v-70bd0dd5] {
|
|
62
|
+
--_rp-progress-track-height: 5px;
|
|
63
|
+
--_rp-progress-font-size: var(--rp-font-size-sm);
|
|
64
|
+
}
|
|
65
|
+
.rp-progress--size-md[data-v-70bd0dd5] {
|
|
66
|
+
--_rp-progress-track-height: 8px;
|
|
67
|
+
--_rp-progress-font-size: var(--rp-font-size-md);
|
|
68
|
+
}
|
|
69
|
+
.rp-progress--size-lg[data-v-70bd0dd5] {
|
|
70
|
+
--_rp-progress-track-height: 12px;
|
|
71
|
+
--_rp-progress-font-size: var(--rp-font-size-lg);
|
|
72
|
+
}
|
|
73
|
+
.rp-progress--size-xl[data-v-70bd0dd5] {
|
|
74
|
+
--_rp-progress-track-height: 16px;
|
|
75
|
+
--_rp-progress-font-size: var(--rp-font-size-xl);
|
|
76
|
+
}
|
|
77
|
+
.rp-progress--radius-none[data-v-70bd0dd5] {
|
|
78
|
+
--_rp-progress-radius: var(--rp-radius-none);
|
|
79
|
+
}
|
|
80
|
+
.rp-progress--radius-xs[data-v-70bd0dd5] {
|
|
81
|
+
--_rp-progress-radius: var(--rp-radius-xs);
|
|
82
|
+
}
|
|
83
|
+
.rp-progress--radius-sm[data-v-70bd0dd5] {
|
|
84
|
+
--_rp-progress-radius: var(--rp-radius-sm);
|
|
85
|
+
}
|
|
86
|
+
.rp-progress--radius-md[data-v-70bd0dd5] {
|
|
87
|
+
--_rp-progress-radius: var(--rp-radius-md);
|
|
88
|
+
}
|
|
89
|
+
.rp-progress--radius-lg[data-v-70bd0dd5] {
|
|
90
|
+
--_rp-progress-radius: var(--rp-radius-lg);
|
|
91
|
+
}
|
|
92
|
+
.rp-progress--radius-xl[data-v-70bd0dd5] {
|
|
93
|
+
--_rp-progress-radius: var(--rp-radius-xl);
|
|
94
|
+
}
|
|
95
|
+
.rp-progress--radius-full[data-v-70bd0dd5] {
|
|
96
|
+
--_rp-progress-radius: var(--rp-radius-full);
|
|
97
|
+
}
|
|
98
|
+
@keyframes rp-progress-indeterminate-70bd0dd5 {
|
|
98
99
|
0% {
|
|
99
|
-
|
|
100
|
+
transform: translateX(-110%);
|
|
100
101
|
}
|
|
101
102
|
100% {
|
|
102
|
-
|
|
103
|
+
transform: translateX(270%);
|
|
104
|
+
}
|
|
103
105
|
}
|
|
104
106
|
}
|
package/dist/progress.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import './progress.css';
|
|
2
2
|
import { t as bem } from "./bem.js";
|
|
3
|
+
import { n as useStylesApi } from "./styles-api.js";
|
|
3
4
|
import { n as getComponentColorValue, t as componentColors } from "./componentColors.js";
|
|
4
5
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
5
6
|
import { t as useControlState } from "./useControlState.js";
|
|
6
|
-
import { computed, createIf, createSlot, defineVaporComponent, renderEffect,
|
|
7
|
+
import { child, computed, createIf, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, setText, template, toDisplayString, unref } from "vue";
|
|
7
8
|
//#region src/components/progress/useProgress.ts
|
|
8
9
|
function normalizeProgressBounds(min, max) {
|
|
9
10
|
const safeMin = Number.isFinite(min) ? min : 0;
|
|
@@ -69,15 +70,15 @@ function useProgress(props) {
|
|
|
69
70
|
}
|
|
70
71
|
//#endregion
|
|
71
72
|
//#region src/components/progress/progress.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
72
|
-
var t0 = template("<span data-v-
|
|
73
|
+
var t0 = template("<span data-v-70bd0dd5>");
|
|
73
74
|
var t1 = template(" ");
|
|
74
|
-
var t2 = template("<span data-v-
|
|
75
|
-
var t3 = template("<span data-v-
|
|
76
|
-
var t4 = template("<div data-v-7870ef03 role=progressbar><span data-v-7870ef03 class=rp-progress__track aria-hidden=true><span data-v-7870ef03 class=rp-progress__indicator>", 1);
|
|
75
|
+
var t2 = template("<span data-v-70bd0dd5 class=rp-progress__header>");
|
|
76
|
+
var t3 = template("<div data-v-70bd0dd5><span data-v-70bd0dd5><span data-v-70bd0dd5>", 1);
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/components/progress/progress.vue
|
|
79
79
|
var progress_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineVaporComponent({
|
|
80
80
|
name: "RpProgress",
|
|
81
|
+
inheritAttrs: false,
|
|
81
82
|
__name: "progress",
|
|
82
83
|
props: {
|
|
83
84
|
id: {},
|
|
@@ -99,38 +100,47 @@ var progress_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
99
100
|
ariaLabel: {},
|
|
100
101
|
ariaValueText: {},
|
|
101
102
|
describedby: {},
|
|
102
|
-
labelledby: {}
|
|
103
|
+
labelledby: {},
|
|
104
|
+
classNames: {},
|
|
105
|
+
styles: {}
|
|
103
106
|
},
|
|
104
107
|
setup(__props, { slots: $slots }) {
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
108
|
+
const props = __props;
|
|
109
|
+
const { control, rootClass, rootStyle, isIndeterminate, normalizedValue, valuePercent, formattedValue, ariaValueText, ariaValueMin, ariaValueMax, ariaValueNow } = useProgress(props);
|
|
110
|
+
const { getPartAttrs, getRootAttrs } = useStylesApi(props, "root");
|
|
111
|
+
const rootAttrs = computed(() => getRootAttrs({
|
|
112
|
+
id: control.id,
|
|
113
|
+
class: rootClass.value,
|
|
114
|
+
style: rootStyle.value,
|
|
115
|
+
role: "progressbar",
|
|
116
|
+
"data-state": isIndeterminate.value ? "indeterminate" : "determinate",
|
|
117
|
+
"aria-label": props.ariaLabel || void 0,
|
|
118
|
+
"aria-labelledby": control.ariaLabelledby,
|
|
119
|
+
"aria-describedby": control.ariaDescribedby,
|
|
120
|
+
"aria-valuemin": ariaValueMin.value,
|
|
121
|
+
"aria-valuemax": ariaValueMax.value,
|
|
122
|
+
"aria-valuenow": ariaValueNow.value,
|
|
123
|
+
"aria-valuetext": ariaValueText.value
|
|
124
|
+
}));
|
|
125
|
+
const n17 = t3();
|
|
126
|
+
const n16 = child(n17, 1);
|
|
127
|
+
const n15 = child(n16);
|
|
128
|
+
renderEffect(() => setDynamicProps(n17, [rootAttrs.value]));
|
|
129
|
+
setInsertionState(n17, 0, 0);
|
|
122
130
|
createIf(() => $slots.default || !unref(isIndeterminate) && ($slots.value || __props.showValue), () => {
|
|
123
|
-
const n14 =
|
|
131
|
+
const n14 = t2();
|
|
124
132
|
setInsertionState(n14, null, 0);
|
|
125
133
|
createIf(() => $slots.default, () => {
|
|
126
134
|
const n5 = t0();
|
|
135
|
+
renderEffect(() => setDynamicProps(n5, [unref(getPartAttrs)("label", { class: "rp-progress__label" })]));
|
|
127
136
|
setInsertionState(n5, null, 0);
|
|
128
137
|
createSlot("default", null, null, 1);
|
|
129
138
|
return n5;
|
|
130
139
|
});
|
|
131
140
|
setInsertionState(n14, null, 1);
|
|
132
141
|
createIf(() => !unref(isIndeterminate) && ($slots.value || __props.showValue), () => {
|
|
133
|
-
const n13 =
|
|
142
|
+
const n13 = t0();
|
|
143
|
+
renderEffect(() => setDynamicProps(n13, [unref(getPartAttrs)("value", { class: "rp-progress__value" }), { "aria-hidden": "true" }]));
|
|
134
144
|
setInsertionState(n13, null, 0);
|
|
135
145
|
createIf(() => $slots.value, () => {
|
|
136
146
|
return createSlot("value", {
|
|
@@ -147,11 +157,23 @@ var progress_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
147
157
|
});
|
|
148
158
|
return n14;
|
|
149
159
|
});
|
|
150
|
-
|
|
160
|
+
renderEffect(() => {
|
|
161
|
+
const _getPartAttrs = unref(getPartAttrs);
|
|
162
|
+
setDynamicProps(n16, [_getPartAttrs("track", { class: "rp-progress__track" }), { "aria-hidden": "true" }]);
|
|
163
|
+
setDynamicProps(n15, [_getPartAttrs("indicator", { class: "rp-progress__indicator" })]);
|
|
164
|
+
});
|
|
165
|
+
return n17;
|
|
151
166
|
}
|
|
152
|
-
}), [["__scopeId", "data-v-
|
|
167
|
+
}), [["__scopeId", "data-v-70bd0dd5"]]);
|
|
153
168
|
//#endregion
|
|
154
169
|
//#region src/components/progress/types.ts
|
|
170
|
+
var progressParts = [
|
|
171
|
+
"root",
|
|
172
|
+
"label",
|
|
173
|
+
"value",
|
|
174
|
+
"track",
|
|
175
|
+
"indicator"
|
|
176
|
+
];
|
|
155
177
|
var progressColors = componentColors;
|
|
156
178
|
var progressSizes = [
|
|
157
179
|
"xs",
|
|
@@ -170,4 +192,4 @@ var progressRadiuses = [
|
|
|
170
192
|
"full"
|
|
171
193
|
];
|
|
172
194
|
//#endregion
|
|
173
|
-
export { progress_default as i,
|
|
195
|
+
export { progress_default as a, progressSizes as i, progressParts as n, progressRadiuses as r, progressColors as t };
|
package/dist/radio.css
CHANGED
|
@@ -1,106 +1,115 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
.rp-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
1
|
+
@layer ropav.components {
|
|
2
|
+
.rp-radio[data-v-d9c68210] {
|
|
3
|
+
--_rp-radio-color: var(--rp-color-control-selected-bg);
|
|
4
|
+
--_rp-radio-on-color: var(--rp-color-control-selected-fg);
|
|
5
|
+
--_rp-radio-default-size: 24px;
|
|
6
|
+
--_rp-radio-default-dot: 10px;
|
|
7
|
+
--_rp-radio-size: var(--rp-radio-control-size, var(--_rp-radio-default-size));
|
|
8
|
+
--_rp-radio-dot: var(--rp-radio-dot-size, var(--_rp-radio-default-dot));
|
|
9
|
+
--_rp-radio-font-size: var(--rp-font-size-md);
|
|
10
|
+
--_rp-radio-checked-bg: var(--_rp-radio-color);
|
|
11
|
+
--_rp-radio-checked-border: var(--_rp-radio-color);
|
|
12
|
+
--_rp-radio-checked-dot: var(--_rp-radio-on-color);
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
font-family: var(--rp-font-family);
|
|
17
|
+
user-select: none;
|
|
18
|
+
}
|
|
19
|
+
.rp-radio--disabled[data-v-d9c68210] {
|
|
20
|
+
opacity: var(--rp-opacity-disabled);
|
|
21
|
+
cursor: not-allowed;
|
|
22
|
+
}
|
|
23
|
+
.rp-radio[data-v-d9c68210] {
|
|
24
|
+
gap: var(--rp-spacing-2);
|
|
25
|
+
font-size: var(--_rp-radio-font-size);
|
|
26
|
+
}
|
|
27
|
+
.rp-radio__native[data-v-d9c68210] {
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 1px;
|
|
30
|
+
height: 1px;
|
|
31
|
+
padding: 0;
|
|
32
|
+
margin: -1px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
clip: rect(0, 0, 0, 0);
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
border-width: 0;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
.rp-radio__native:focus-visible + .rp-radio__dot[data-v-d9c68210] {
|
|
40
|
+
border-color: var(--rp-color-control-border-focus);
|
|
41
|
+
box-shadow: 0 0 0 var(--rp-border-width-medium) var(--rp-color-focus-ring);
|
|
42
|
+
}
|
|
43
|
+
.rp-radio__dot[data-v-d9c68210] {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: var(--_rp-radio-size);
|
|
48
|
+
height: var(--_rp-radio-size);
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
border: var(--rp-border-width-medium) solid var(--rp-color-control-border);
|
|
51
|
+
border-radius: var(--rp-radius-full);
|
|
52
|
+
background-color: var(--rp-color-control-bg);
|
|
53
|
+
transition: background-color var(--rp-transition-fast), border-color var(--rp-transition-fast);
|
|
54
|
+
}
|
|
55
|
+
.rp-radio__dot[data-v-d9c68210]::after {
|
|
56
|
+
content: "";
|
|
57
|
+
width: var(--_rp-radio-dot);
|
|
58
|
+
height: var(--_rp-radio-dot);
|
|
59
|
+
border-radius: var(--rp-radius-full);
|
|
60
|
+
background-color: var(--_rp-radio-checked-dot);
|
|
61
|
+
transform: scale(0);
|
|
62
|
+
transition: transform var(--rp-transition-fast);
|
|
63
|
+
}
|
|
64
|
+
.rp-radio--checked .rp-radio__dot[data-v-d9c68210] {
|
|
65
|
+
background-color: var(--_rp-radio-checked-bg);
|
|
66
|
+
border-color: var(--_rp-radio-checked-border);
|
|
67
|
+
}
|
|
68
|
+
.rp-radio--checked .rp-radio__dot[data-v-d9c68210]::after {
|
|
69
|
+
transform: scale(1);
|
|
70
|
+
}
|
|
71
|
+
.rp-radio__label[data-v-d9c68210] {
|
|
72
|
+
line-height: var(--rp-line-height-md);
|
|
73
|
+
color: var(--rp-color-text);
|
|
74
|
+
}
|
|
75
|
+
.rp-radio--outline[data-v-d9c68210] {
|
|
76
|
+
--_rp-radio-checked-bg: var(--rp-color-control-bg);
|
|
77
|
+
--_rp-radio-checked-border: var(--_rp-radio-color);
|
|
78
|
+
--_rp-radio-checked-dot: var(--_rp-radio-color);
|
|
79
|
+
}
|
|
80
|
+
.rp-radio--size-xs[data-v-d9c68210] {
|
|
81
|
+
--_rp-radio-default-size: 16px;
|
|
82
|
+
--_rp-radio-default-dot: 6px;
|
|
83
|
+
--_rp-radio-font-size: var(--rp-font-size-xs);
|
|
84
|
+
}
|
|
85
|
+
.rp-radio--size-sm[data-v-d9c68210] {
|
|
86
|
+
--_rp-radio-default-size: 20px;
|
|
87
|
+
--_rp-radio-default-dot: 8px;
|
|
88
|
+
--_rp-radio-font-size: var(--rp-font-size-sm);
|
|
89
|
+
}
|
|
90
|
+
.rp-radio--size-md[data-v-d9c68210] {
|
|
91
|
+
--_rp-radio-default-size: 24px;
|
|
92
|
+
--_rp-radio-default-dot: 10px;
|
|
93
|
+
--_rp-radio-font-size: var(--rp-font-size-md);
|
|
94
|
+
}
|
|
95
|
+
.rp-radio--size-lg[data-v-d9c68210] {
|
|
96
|
+
--_rp-radio-default-size: 30px;
|
|
97
|
+
--_rp-radio-default-dot: 14px;
|
|
98
|
+
--_rp-radio-font-size: var(--rp-font-size-lg);
|
|
99
|
+
}
|
|
100
|
+
.rp-radio--size-xl[data-v-d9c68210] {
|
|
101
|
+
--_rp-radio-default-size: 36px;
|
|
102
|
+
--_rp-radio-default-dot: 16px;
|
|
103
|
+
--_rp-radio-font-size: var(--rp-font-size-xl);
|
|
104
|
+
}
|
|
105
|
+
}@layer ropav.components {
|
|
106
|
+
.rp-radio-group[data-v-a0fcf376] {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: var(--rp-spacing-3);
|
|
110
|
+
font-family: var(--rp-font-family);
|
|
111
|
+
}
|
|
112
|
+
.rp-radio-group[data-orientation=horizontal][data-v-a0fcf376] {
|
|
113
|
+
flex-flow: row wrap;
|
|
114
|
+
}
|
|
106
115
|
}
|