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/button-group.css
CHANGED
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
@layer ropav.components {
|
|
2
|
+
.rp-button-group[data-v-60c77338] {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
gap: var(--rp-spacing-2);
|
|
6
|
+
font-family: var(--rp-font-family);
|
|
7
|
+
vertical-align: middle;
|
|
7
8
|
}
|
|
8
|
-
.rp-button-group--vertical[data-v-
|
|
9
|
-
|
|
9
|
+
.rp-button-group--vertical[data-v-60c77338] {
|
|
10
|
+
flex-direction: column;
|
|
10
11
|
}
|
|
11
|
-
.rp-button-group--wrap[data-v-
|
|
12
|
-
|
|
12
|
+
.rp-button-group--wrap[data-v-60c77338] {
|
|
13
|
+
flex-wrap: wrap;
|
|
13
14
|
}
|
|
14
|
-
.rp-button-group--attached[data-v-
|
|
15
|
-
|
|
15
|
+
.rp-button-group--attached[data-v-60c77338] {
|
|
16
|
+
gap: 0;
|
|
16
17
|
}
|
|
17
|
-
.rp-button-group--attached[data-v-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
.rp-button-group--attached[data-v-60c77338]:focus-within {
|
|
19
|
+
position: relative;
|
|
20
|
+
z-index: 1;
|
|
20
21
|
}
|
|
21
|
-
.rp-button-group--attached[data-v-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
.rp-button-group--attached[data-v-60c77338] > .rp-button {
|
|
23
|
+
position: relative;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
box-shadow: none;
|
|
25
26
|
}
|
|
26
|
-
.rp-button-group--attached[data-v-
|
|
27
|
-
|
|
27
|
+
.rp-button-group--attached[data-v-60c77338] > .rp-button:is(:hover, :focus-visible) {
|
|
28
|
+
z-index: 1;
|
|
28
29
|
}
|
|
29
|
-
.rp-button-group--attached[data-v-
|
|
30
|
-
|
|
30
|
+
.rp-button-group--attached[data-v-60c77338]:not(.rp-button-group--vertical) > .rp-button:not(:first-child) {
|
|
31
|
+
margin-inline-start: calc(var(--rp-border-width-thin) * -1);
|
|
31
32
|
}
|
|
32
|
-
.rp-button-group--attached[data-v-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
.rp-button-group--attached[data-v-60c77338]:not(.rp-button-group--vertical) > .rp-button:first-child {
|
|
34
|
+
border-start-start-radius: var(--_rp-button-radius);
|
|
35
|
+
border-end-start-radius: var(--_rp-button-radius);
|
|
35
36
|
}
|
|
36
|
-
.rp-button-group--attached[data-v-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
.rp-button-group--attached[data-v-60c77338]:not(.rp-button-group--vertical) > .rp-button:last-child {
|
|
38
|
+
border-start-end-radius: var(--_rp-button-radius);
|
|
39
|
+
border-end-end-radius: var(--_rp-button-radius);
|
|
39
40
|
}
|
|
40
|
-
.rp-button-group--attached.rp-button-group--vertical[data-v-
|
|
41
|
-
|
|
41
|
+
.rp-button-group--attached.rp-button-group--vertical[data-v-60c77338] > .rp-button:not(:first-child) {
|
|
42
|
+
margin-block-start: calc(var(--rp-border-width-thin) * -1);
|
|
42
43
|
}
|
|
43
|
-
.rp-button-group--attached.rp-button-group--vertical[data-v-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
.rp-button-group--attached.rp-button-group--vertical[data-v-60c77338] > .rp-button:first-child {
|
|
45
|
+
border-start-start-radius: var(--_rp-button-radius);
|
|
46
|
+
border-start-end-radius: var(--_rp-button-radius);
|
|
47
|
+
}
|
|
48
|
+
.rp-button-group--attached.rp-button-group--vertical[data-v-60c77338] > .rp-button:last-child {
|
|
49
|
+
border-end-start-radius: var(--_rp-button-radius);
|
|
50
|
+
border-end-end-radius: var(--_rp-button-radius);
|
|
46
51
|
}
|
|
47
|
-
.rp-button-group--attached.rp-button-group--vertical[data-v-d9f79a5b] > .rp-button:last-child {
|
|
48
|
-
border-end-start-radius: var(--_rp-button-radius);
|
|
49
|
-
border-end-end-radius: var(--_rp-button-radius);
|
|
50
52
|
}
|
package/dist/button-group.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import './button-group.css';
|
|
2
2
|
import { t as bem } from "./bem.js";
|
|
3
|
+
import { n as useStylesApi } from "./styles-api.js";
|
|
3
4
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
4
|
-
import { computed, createSlot, defineVaporComponent, renderEffect,
|
|
5
|
+
import { computed, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, template } from "vue";
|
|
5
6
|
//#region src/components/button-group/button-group.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
6
|
-
var t0 = template("<div data-v-
|
|
7
|
+
var t0 = template("<div data-v-60c77338>", 1);
|
|
7
8
|
//#endregion
|
|
8
9
|
//#region src/components/button-group/button-group.vue
|
|
9
10
|
var button_group_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineVaporComponent({
|
|
10
11
|
name: "RpButtonGroup",
|
|
12
|
+
inheritAttrs: false,
|
|
11
13
|
__name: "button-group",
|
|
12
14
|
props: {
|
|
13
15
|
id: {},
|
|
@@ -22,7 +24,9 @@ var button_group_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
22
24
|
},
|
|
23
25
|
ariaLabel: {},
|
|
24
26
|
describedby: {},
|
|
25
|
-
labelledby: {}
|
|
27
|
+
labelledby: {},
|
|
28
|
+
classNames: {},
|
|
29
|
+
styles: {}
|
|
26
30
|
},
|
|
27
31
|
setup(__props) {
|
|
28
32
|
const props = __props;
|
|
@@ -31,18 +35,25 @@ var button_group_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
31
35
|
attached: props.attached,
|
|
32
36
|
wrap: props.wrap
|
|
33
37
|
}));
|
|
38
|
+
const { getRootAttrs } = useStylesApi(props, "root");
|
|
39
|
+
const rootAttrs = computed(() => getRootAttrs({
|
|
40
|
+
id: props.id,
|
|
41
|
+
class: rootClass.value,
|
|
42
|
+
role: "group",
|
|
43
|
+
"data-orientation": props.orientation,
|
|
44
|
+
"aria-label": props.ariaLabel || void 0,
|
|
45
|
+
"aria-labelledby": props.labelledby,
|
|
46
|
+
"aria-describedby": props.describedby
|
|
47
|
+
}));
|
|
34
48
|
const n1 = t0();
|
|
35
|
-
renderEffect(() =>
|
|
36
|
-
setProp(n1, "id", __props.id);
|
|
37
|
-
setClass(n1, rootClass.value);
|
|
38
|
-
setAttr(n1, "aria-label", __props.ariaLabel || void 0);
|
|
39
|
-
setAttr(n1, "aria-labelledby", __props.labelledby);
|
|
40
|
-
setAttr(n1, "aria-describedby", __props.describedby);
|
|
41
|
-
});
|
|
49
|
+
renderEffect(() => setDynamicProps(n1, [rootAttrs.value]));
|
|
42
50
|
setInsertionState(n1, null, 0);
|
|
43
51
|
createSlot("default", null, null, 1);
|
|
44
52
|
return n1;
|
|
45
53
|
}
|
|
46
|
-
}), [["__scopeId", "data-v-
|
|
54
|
+
}), [["__scopeId", "data-v-60c77338"]]);
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/button-group/types.ts
|
|
57
|
+
var buttonGroupParts = ["root"];
|
|
47
58
|
//#endregion
|
|
48
|
-
export { button_group_default as t };
|
|
59
|
+
export { button_group_default as n, buttonGroupParts as t };
|
package/dist/button-link.css
CHANGED
|
@@ -1,161 +1,163 @@
|
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
1
|
+
@layer ropav.components {
|
|
2
|
+
.rp-button[data-v-107a8d80] {
|
|
3
|
+
--_rp-button-bg: var(--rp-color-default);
|
|
4
|
+
--_rp-button-bg-hover: var(--rp-color-default-hover);
|
|
5
|
+
--_rp-button-bg-active: var(--rp-color-disabled);
|
|
6
|
+
--_rp-button-border: var(--rp-color-default-border);
|
|
7
|
+
--_rp-button-border-hover: var(--_rp-button-border);
|
|
8
|
+
--_rp-button-border-active: var(--_rp-button-border-hover);
|
|
9
|
+
--_rp-button-fg: var(--rp-color-default-color);
|
|
10
|
+
--_rp-button-height: var(--rp-size-control-md);
|
|
11
|
+
--_rp-button-padding-x: 22px;
|
|
12
|
+
--_rp-button-font-size: var(--rp-font-size-md);
|
|
13
|
+
--_rp-button-radius: var(--rp-radius-sm);
|
|
14
|
+
--_rp-button-shadow: var(--rp-shadow-sm);
|
|
15
|
+
--_rp-button-shadow-hover: var(--rp-shadow-base);
|
|
16
|
+
--_rp-button-shadow-active: var(--rp-shadow-sm);
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
position: relative;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
font-family: var(--rp-font-family);
|
|
23
|
+
font-weight: var(--rp-font-weight-medium);
|
|
24
|
+
line-height: 1;
|
|
25
|
+
appearance: none;
|
|
26
|
+
background-color: var(--_rp-button-bg);
|
|
27
|
+
border: var(--rp-border-width-thin) solid var(--_rp-button-border);
|
|
28
|
+
box-shadow: var(--_rp-button-shadow);
|
|
29
|
+
color: var(--_rp-button-fg);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
transition: background-color var(--rp-transition-fast), color var(--rp-transition-fast), border-color var(--rp-transition-fast), box-shadow var(--rp-transition-fast), transform var(--rp-transition-fast);
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
user-select: none;
|
|
35
|
+
height: var(--_rp-button-height);
|
|
36
|
+
padding: 0 var(--_rp-button-padding-x);
|
|
37
|
+
font-size: var(--_rp-button-font-size);
|
|
38
|
+
border-radius: var(--_rp-button-radius);
|
|
39
|
+
}
|
|
40
|
+
.rp-button[data-v-107a8d80]:hover:not(:disabled):not(.rp-button--disabled) {
|
|
41
|
+
background-color: var(--_rp-button-bg-hover);
|
|
42
|
+
border-color: var(--_rp-button-border-hover);
|
|
43
|
+
box-shadow: var(--_rp-button-shadow-hover);
|
|
44
|
+
}
|
|
45
|
+
.rp-button[data-v-107a8d80]:active:not(:disabled):not(.rp-button--disabled) {
|
|
46
|
+
background-color: var(--_rp-button-bg-active);
|
|
47
|
+
border-color: var(--_rp-button-border-active);
|
|
48
|
+
box-shadow: var(--_rp-button-shadow-active);
|
|
49
|
+
transform: translateY(1px);
|
|
50
|
+
}
|
|
51
|
+
.rp-button--size-xs[data-v-107a8d80] {
|
|
52
|
+
--_rp-button-height: var(--rp-size-control-xs);
|
|
53
|
+
--_rp-button-padding-x: 14px;
|
|
54
|
+
--_rp-button-font-size: var(--rp-font-size-xs);
|
|
55
|
+
}
|
|
56
|
+
.rp-button--size-sm[data-v-107a8d80] {
|
|
57
|
+
--_rp-button-height: var(--rp-size-control-sm);
|
|
58
|
+
--_rp-button-padding-x: 18px;
|
|
59
|
+
--_rp-button-font-size: var(--rp-font-size-sm);
|
|
60
|
+
}
|
|
61
|
+
.rp-button--size-md[data-v-107a8d80] {
|
|
62
|
+
--_rp-button-height: var(--rp-size-control-md);
|
|
63
|
+
--_rp-button-padding-x: 22px;
|
|
64
|
+
--_rp-button-font-size: var(--rp-font-size-md);
|
|
65
|
+
}
|
|
66
|
+
.rp-button--size-lg[data-v-107a8d80] {
|
|
67
|
+
--_rp-button-height: var(--rp-size-control-lg);
|
|
68
|
+
--_rp-button-padding-x: 26px;
|
|
69
|
+
--_rp-button-font-size: var(--rp-font-size-lg);
|
|
70
|
+
}
|
|
71
|
+
.rp-button--size-xl[data-v-107a8d80] {
|
|
72
|
+
--_rp-button-height: var(--rp-size-control-xl);
|
|
73
|
+
--_rp-button-padding-x: 32px;
|
|
74
|
+
--_rp-button-font-size: var(--rp-font-size-xl);
|
|
75
|
+
}
|
|
76
|
+
.rp-button--radius-xs[data-v-107a8d80] {
|
|
77
|
+
--_rp-button-radius: var(--rp-radius-xs);
|
|
78
|
+
}
|
|
79
|
+
.rp-button--radius-sm[data-v-107a8d80] {
|
|
80
|
+
--_rp-button-radius: var(--rp-radius-sm);
|
|
81
|
+
}
|
|
82
|
+
.rp-button--radius-md[data-v-107a8d80] {
|
|
83
|
+
--_rp-button-radius: var(--rp-radius-md);
|
|
84
|
+
}
|
|
85
|
+
.rp-button--radius-lg[data-v-107a8d80] {
|
|
86
|
+
--_rp-button-radius: var(--rp-radius-lg);
|
|
87
|
+
}
|
|
88
|
+
.rp-button--radius-xl[data-v-107a8d80] {
|
|
89
|
+
--_rp-button-radius: var(--rp-radius-xl);
|
|
90
|
+
}
|
|
91
|
+
.rp-button--subtle[data-v-107a8d80] {
|
|
92
|
+
--_rp-button-shadow: none;
|
|
93
|
+
--_rp-button-shadow-hover: none;
|
|
94
|
+
--_rp-button-shadow-active: none;
|
|
95
|
+
}
|
|
96
|
+
.rp-button--surface[data-v-107a8d80] {
|
|
97
|
+
--_rp-button-shadow: none;
|
|
98
|
+
--_rp-button-shadow-hover: none;
|
|
99
|
+
--_rp-button-shadow-active: none;
|
|
100
|
+
}
|
|
101
|
+
.rp-button--outline[data-v-107a8d80] {
|
|
102
|
+
--_rp-button-shadow: none;
|
|
103
|
+
--_rp-button-shadow-hover: none;
|
|
104
|
+
--_rp-button-shadow-active: none;
|
|
105
|
+
}
|
|
106
|
+
.rp-button--ghost[data-v-107a8d80] {
|
|
107
|
+
--_rp-button-shadow: none;
|
|
108
|
+
--_rp-button-shadow-hover: none;
|
|
109
|
+
--_rp-button-shadow-active: none;
|
|
110
|
+
}
|
|
111
|
+
.rp-button--plain[data-v-107a8d80] {
|
|
112
|
+
--_rp-button-shadow: none;
|
|
113
|
+
--_rp-button-shadow-hover: none;
|
|
114
|
+
--_rp-button-shadow-active: none;
|
|
115
|
+
}
|
|
116
|
+
.rp-button[data-v-107a8d80]:disabled, .rp-button--disabled[data-v-107a8d80] {
|
|
117
|
+
opacity: var(--rp-opacity-disabled);
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
box-shadow: none;
|
|
120
|
+
transform: none;
|
|
121
|
+
}
|
|
122
|
+
.rp-button[data-v-107a8d80]:focus-visible {
|
|
123
|
+
outline: none;
|
|
124
|
+
border-color: var(--rp-color-control-border-focus);
|
|
125
|
+
box-shadow: 0 0 0 var(--rp-border-width-medium) var(--rp-color-focus-ring);
|
|
126
|
+
}
|
|
127
|
+
.rp-button--loading .rp-button__content[data-v-107a8d80] {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
}
|
|
130
|
+
.rp-button__content[data-v-107a8d80] {
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
gap: var(--rp-spacing-2);
|
|
135
|
+
}
|
|
136
|
+
.rp-button__left[data-v-107a8d80], .rp-button__right[data-v-107a8d80] {
|
|
137
|
+
display: inline-flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
flex-shrink: 0;
|
|
140
|
+
}
|
|
141
|
+
.rp-button__loading[data-v-107a8d80] {
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 50%;
|
|
147
|
+
left: 50%;
|
|
148
|
+
translate: -50% -50%;
|
|
149
|
+
}
|
|
150
|
+
.rp-button__spinner[data-v-107a8d80] {
|
|
151
|
+
display: block;
|
|
152
|
+
width: 1em;
|
|
153
|
+
height: 1em;
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
transform-origin: center;
|
|
156
|
+
animation: rp-spinner-spin-107a8d80 700ms linear infinite;
|
|
157
|
+
}
|
|
158
|
+
@keyframes rp-spinner-spin-107a8d80 {
|
|
158
159
|
to {
|
|
159
|
-
|
|
160
|
+
transform: rotate(360deg);
|
|
161
|
+
}
|
|
160
162
|
}
|
|
161
163
|
}
|
package/dist/button-link.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './button-link.css';
|
|
2
2
|
import { t as bem } from "./bem.js";
|
|
3
|
+
import { n as useStylesApi, t as presence } from "./styles-api.js";
|
|
3
4
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
4
5
|
import { n as loader_circle_default, t as getButtonColorStyle } from "./useButtonColor.js";
|
|
5
|
-
import { child, computed, createComponent, createIf, createSlot, defineVaporComponent,
|
|
6
|
+
import { child, computed, createComponent, createIf, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, template, unref } from "vue";
|
|
6
7
|
//#region src/components/button-link/button-link.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
7
|
-
var t0 = template("<span data-v-
|
|
8
|
-
var t1 = template("<span data-v-
|
|
9
|
-
var t2 = template("<span data-v-5511459a class=rp-button__right>");
|
|
10
|
-
var t3 = template("<a data-v-5511459a><span data-v-5511459a class=rp-button__content><span data-v-5511459a class=rp-button__label></span>", 1);
|
|
8
|
+
var t0 = template("<span data-v-107a8d80>");
|
|
9
|
+
var t1 = template("<a data-v-107a8d80><span data-v-107a8d80 class=rp-button__content><span data-v-107a8d80></span>", 1);
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/components/button-link/button-link.vue
|
|
13
12
|
var button_link_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineVaporComponent({
|
|
14
13
|
name: "RpButtonLink",
|
|
14
|
+
inheritAttrs: false,
|
|
15
15
|
__name: "button-link",
|
|
16
16
|
props: {
|
|
17
17
|
href: {},
|
|
@@ -31,7 +31,9 @@ var button_link_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
31
31
|
loading: {
|
|
32
32
|
type: Boolean,
|
|
33
33
|
default: false
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
classNames: {},
|
|
36
|
+
styles: {}
|
|
35
37
|
},
|
|
36
38
|
setup(__props, { slots: $slots }) {
|
|
37
39
|
const props = __props;
|
|
@@ -55,29 +57,35 @@ var button_link_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
55
57
|
return props.download === true ? "" : props.download;
|
|
56
58
|
});
|
|
57
59
|
const resolvedHrefLang = computed(() => isUnavailable.value ? void 0 : props.hreflang);
|
|
60
|
+
const { getPartAttrs, getRootAttrs } = useStylesApi(props, "root");
|
|
61
|
+
const rootAttrs = computed(() => getRootAttrs({
|
|
62
|
+
class: rootClass.value,
|
|
63
|
+
style: rootStyle.value,
|
|
64
|
+
href: resolvedHref.value,
|
|
65
|
+
target: resolvedTarget.value,
|
|
66
|
+
rel: resolvedRel.value,
|
|
67
|
+
download: resolvedDownload.value,
|
|
68
|
+
hreflang: resolvedHrefLang.value,
|
|
69
|
+
"aria-disabled": isUnavailable.value || void 0,
|
|
70
|
+
"aria-busy": props.loading || void 0,
|
|
71
|
+
tabindex: isUnavailable.value ? -1 : void 0,
|
|
72
|
+
"data-disabled": presence(isUnavailable.value),
|
|
73
|
+
"data-loading": presence(props.loading),
|
|
74
|
+
onClickCapture: onDisabledClick
|
|
75
|
+
}));
|
|
58
76
|
function onDisabledClick(event) {
|
|
59
77
|
if (!isUnavailable.value) return;
|
|
60
78
|
event.preventDefault();
|
|
61
79
|
event.stopImmediatePropagation();
|
|
62
80
|
}
|
|
63
|
-
const n17 =
|
|
81
|
+
const n17 = t1();
|
|
64
82
|
const n16 = child(n17, 1);
|
|
65
83
|
const n11 = child(n16, 1);
|
|
66
|
-
renderEffect(() =>
|
|
67
|
-
setClass(n17, rootClass.value);
|
|
68
|
-
setStyle(n17, rootStyle.value);
|
|
69
|
-
setProp(n17, "href", resolvedHref.value);
|
|
70
|
-
setProp(n17, "target", resolvedTarget.value);
|
|
71
|
-
setProp(n17, "rel", resolvedRel.value);
|
|
72
|
-
setProp(n17, "download", resolvedDownload.value);
|
|
73
|
-
setProp(n17, "hreflang", resolvedHrefLang.value);
|
|
74
|
-
setAttr(n17, "aria-disabled", isUnavailable.value || void 0);
|
|
75
|
-
setAttr(n17, "aria-busy", __props.loading || void 0);
|
|
76
|
-
setProp(n17, "tabindex", isUnavailable.value ? -1 : void 0);
|
|
77
|
-
});
|
|
84
|
+
renderEffect(() => setDynamicProps(n17, [rootAttrs.value]));
|
|
78
85
|
setInsertionState(n17, 0, 0);
|
|
79
86
|
createIf(() => __props.loading, () => {
|
|
80
87
|
const n5 = t0();
|
|
88
|
+
renderEffect(() => setDynamicProps(n5, [unref(getPartAttrs)("loader", { class: "rp-button__loading" }), { "aria-hidden": "true" }]));
|
|
81
89
|
setInsertionState(n5, null, 0);
|
|
82
90
|
createSlot("loading", null, () => {
|
|
83
91
|
return createComponent(unref(loader_circle_default), { class: "rp-button__spinner" });
|
|
@@ -86,23 +94,34 @@ var button_link_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
86
94
|
});
|
|
87
95
|
setInsertionState(n16, 0, 0);
|
|
88
96
|
createIf(() => $slots.left, () => {
|
|
89
|
-
const n9 =
|
|
97
|
+
const n9 = t0();
|
|
98
|
+
renderEffect(() => setDynamicProps(n9, [unref(getPartAttrs)("left", { class: "rp-button__left" })]));
|
|
90
99
|
setInsertionState(n9, null, 0);
|
|
91
100
|
createSlot("left", null, null, 1);
|
|
92
101
|
return n9;
|
|
93
102
|
});
|
|
103
|
+
renderEffect(() => setDynamicProps(n11, [unref(getPartAttrs)("label", { class: "rp-button__label" })]));
|
|
94
104
|
setInsertionState(n11, null, 0);
|
|
95
105
|
createSlot("default", null, null, 1);
|
|
96
106
|
setInsertionState(n16, null, 2);
|
|
97
107
|
createIf(() => $slots.right, () => {
|
|
98
|
-
const n15 =
|
|
108
|
+
const n15 = t0();
|
|
109
|
+
renderEffect(() => setDynamicProps(n15, [unref(getPartAttrs)("right", { class: "rp-button__right" })]));
|
|
99
110
|
setInsertionState(n15, null, 0);
|
|
100
111
|
createSlot("right", null, null, 1);
|
|
101
112
|
return n15;
|
|
102
113
|
});
|
|
103
|
-
on(n17, "click", onDisabledClick, { capture: true });
|
|
104
114
|
return n17;
|
|
105
115
|
}
|
|
106
|
-
}), [["__scopeId", "data-v-
|
|
116
|
+
}), [["__scopeId", "data-v-107a8d80"]]);
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/button-link/types.ts
|
|
119
|
+
var buttonLinkParts = [
|
|
120
|
+
"root",
|
|
121
|
+
"loader",
|
|
122
|
+
"left",
|
|
123
|
+
"label",
|
|
124
|
+
"right"
|
|
125
|
+
];
|
|
107
126
|
//#endregion
|
|
108
|
-
export { button_link_default as t };
|
|
127
|
+
export { button_link_default as n, buttonLinkParts as t };
|