@pathscale/ui 1.1.34 → 1.1.36
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/dist/components/breadcrumbs/Breadcrumbs.classes.d.ts +8 -0
- package/dist/components/breadcrumbs/Breadcrumbs.classes.js +13 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +8 -3
- package/dist/components/button/Button.classes.d.ts +27 -0
- package/dist/components/button/Button.classes.js +28 -0
- package/dist/components/button/Button.css +10 -1
- package/dist/components/button/Button.d.ts +6 -3
- package/dist/components/button/Button.js +37 -21
- package/dist/components/button-group/ButtonGroup.classes.d.ts +15 -0
- package/dist/components/button-group/ButtonGroup.classes.js +16 -0
- package/dist/components/button-group/ButtonGroup.css +117 -0
- package/dist/components/button-group/ButtonGroup.d.ts +23 -0
- package/dist/components/button-group/ButtonGroup.js +88 -0
- package/dist/components/button-group/context.d.ts +8 -0
- package/dist/components/button-group/context.js +3 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/index.js +6 -0
- package/dist/components/card/Card.classes.d.ts +24 -0
- package/dist/components/card/Card.classes.js +25 -0
- package/dist/components/card/Card.css +110 -0
- package/dist/components/card/Card.d.ts +26 -26
- package/dist/components/card/Card.js +126 -70
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +6 -1
- package/dist/components/checkbox/Checkbox.js +18 -4
- package/dist/components/checkbox-group/CheckboxGroup.classes.d.ts +11 -0
- package/dist/components/checkbox-group/CheckboxGroup.classes.js +12 -0
- package/dist/components/checkbox-group/CheckboxGroup.css +10 -0
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +18 -0
- package/dist/components/checkbox-group/CheckboxGroup.js +94 -0
- package/dist/components/checkbox-group/context.d.ts +11 -0
- package/dist/components/checkbox-group/context.js +3 -0
- package/dist/components/checkbox-group/index.d.ts +4 -0
- package/dist/components/checkbox-group/index.js +4 -0
- package/dist/components/chip/Chip.css +11 -9
- package/dist/components/chip/Chip.d.ts +2 -2
- package/dist/components/chip/Chip.js +38 -30
- package/dist/components/close-button/CloseButton.classes.d.ts +11 -0
- package/dist/components/close-button/CloseButton.classes.js +12 -0
- package/dist/components/close-button/CloseButton.css +81 -0
- package/dist/components/close-button/CloseButton.d.ts +14 -0
- package/dist/components/close-button/CloseButton.js +76 -0
- package/dist/components/close-button/index.d.ts +1 -0
- package/dist/components/close-button/index.js +3 -0
- package/dist/components/combo-box/ComboBox.classes.d.ts +42 -0
- package/dist/components/combo-box/ComboBox.classes.js +43 -0
- package/dist/components/combo-box/ComboBox.css +344 -0
- package/dist/components/combo-box/ComboBox.d.ts +86 -0
- package/dist/components/combo-box/ComboBox.js +725 -0
- package/dist/components/combo-box/index.d.ts +1 -0
- package/dist/components/combo-box/index.js +10 -0
- package/dist/components/date-field/DateField.classes.d.ts +37 -0
- package/dist/components/date-field/DateField.classes.js +38 -0
- package/dist/components/date-field/DateField.css +215 -0
- package/dist/components/date-field/DateField.d.ts +64 -0
- package/dist/components/date-field/DateField.js +334 -0
- package/dist/components/date-field/index.d.ts +1 -0
- package/dist/components/date-field/index.js +11 -0
- package/dist/components/description/Description.classes.d.ts +3 -0
- package/dist/components/description/Description.classes.js +4 -0
- package/dist/components/description/Description.css +10 -0
- package/dist/components/description/Description.d.ts +11 -0
- package/dist/components/description/Description.js +41 -0
- package/dist/components/description/index.d.ts +1 -0
- package/dist/components/description/index.js +5 -0
- package/dist/components/drawer/Drawer.css +15 -0
- package/dist/components/drawer/Drawer.d.ts +2 -0
- package/dist/components/drawer/Drawer.js +24 -16
- package/dist/components/error-message/ErrorMessage.classes.d.ts +3 -0
- package/dist/components/error-message/ErrorMessage.classes.js +4 -0
- package/dist/components/error-message/ErrorMessage.css +20 -0
- package/dist/components/error-message/ErrorMessage.d.ts +11 -0
- package/dist/components/error-message/ErrorMessage.js +41 -0
- package/dist/components/error-message/index.d.ts +1 -0
- package/dist/components/error-message/index.js +5 -0
- package/dist/components/field-error/FieldError.classes.d.ts +3 -0
- package/dist/components/field-error/FieldError.classes.js +4 -0
- package/dist/components/field-error/FieldError.css +27 -0
- package/dist/components/field-error/FieldError.d.ts +21 -0
- package/dist/components/field-error/FieldError.js +70 -0
- package/dist/components/field-error/index.d.ts +1 -0
- package/dist/components/field-error/index.js +5 -0
- package/dist/components/fieldset/Fieldset.classes.d.ts +14 -0
- package/dist/components/fieldset/Fieldset.classes.js +15 -0
- package/dist/components/fieldset/Fieldset.css +30 -0
- package/dist/components/fieldset/Fieldset.d.ts +22 -9
- package/dist/components/fieldset/Fieldset.js +89 -44
- package/dist/components/fieldset/index.d.ts +1 -2
- package/dist/components/fieldset/index.js +7 -2
- package/dist/components/form/Form.classes.d.ts +3 -0
- package/dist/components/form/Form.classes.js +4 -0
- package/dist/components/form/Form.css +5 -0
- package/dist/components/form/Form.d.ts +10 -16
- package/dist/components/form/Form.js +34 -16
- package/dist/components/form/index.d.ts +1 -4
- package/dist/components/form/index.js +3 -4
- package/dist/components/header/Header.classes.d.ts +3 -0
- package/dist/components/header/Header.classes.js +4 -0
- package/dist/components/header/Header.css +13 -0
- package/dist/components/header/Header.d.ts +9 -0
- package/dist/components/{form/Label.js → header/Header.js} +18 -14
- package/dist/components/header/index.d.ts +1 -0
- package/dist/components/header/index.js +5 -0
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +62 -68
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +58 -64
- package/dist/components/input/Input.css +3 -2
- package/dist/components/input/Input.d.ts +2 -2
- package/dist/components/input/Input.js +7 -7
- package/dist/components/input-group/InputGroup.classes.d.ts +21 -0
- package/dist/components/input-group/InputGroup.classes.js +22 -0
- package/dist/components/input-group/InputGroup.css +172 -0
- package/dist/components/input-group/InputGroup.d.ts +44 -0
- package/dist/components/input-group/InputGroup.js +224 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +9 -0
- package/dist/components/input-otp/InputOTP.classes.d.ts +23 -0
- package/dist/components/input-otp/InputOTP.classes.js +24 -0
- package/dist/components/input-otp/InputOTP.css +170 -0
- package/dist/components/input-otp/InputOTP.d.ts +46 -0
- package/dist/components/input-otp/InputOTP.js +385 -0
- package/dist/components/input-otp/index.d.ts +1 -0
- package/dist/components/input-otp/index.js +11 -0
- package/dist/components/label/Label.classes.d.ts +8 -0
- package/dist/components/label/Label.classes.js +9 -0
- package/dist/components/label/Label.css +30 -0
- package/dist/components/label/Label.d.ts +17 -0
- package/dist/components/label/Label.js +60 -0
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/label/index.js +5 -0
- package/dist/components/list-box/ListBox.classes.d.ts +23 -0
- package/dist/components/list-box/ListBox.classes.js +24 -0
- package/dist/components/list-box/ListBox.css +148 -0
- package/dist/components/list-box/ListBox.d.ts +23 -0
- package/dist/components/list-box/ListBox.js +221 -0
- package/dist/components/list-box/ListBoxItem.d.ts +28 -0
- package/dist/components/list-box/ListBoxItem.js +228 -0
- package/dist/components/list-box/ListBoxSection.d.ts +11 -0
- package/dist/components/list-box/ListBoxSection.js +50 -0
- package/dist/components/list-box/context.d.ts +27 -0
- package/dist/components/list-box/context.js +3 -0
- package/dist/components/list-box/index.d.ts +17 -0
- package/dist/components/list-box/index.js +17 -0
- package/dist/components/menu/Menu.classes.d.ts +20 -0
- package/dist/components/menu/Menu.classes.js +21 -0
- package/dist/components/menu/Menu.css +199 -0
- package/dist/components/menu/Menu.d.ts +32 -20
- package/dist/components/menu/Menu.js +214 -39
- package/dist/components/menu/MenuItem.d.ts +35 -5
- package/dist/components/menu/MenuItem.js +267 -19
- package/dist/components/menu/MenuSection.d.ts +11 -0
- package/dist/components/menu/MenuSection.js +50 -0
- package/dist/components/menu/context.d.ts +26 -0
- package/dist/components/menu/context.js +3 -0
- package/dist/components/menu/index.d.ts +4 -3
- package/dist/components/menu/index.js +11 -2
- package/dist/components/navbar/Navbar.classes.d.ts +37 -0
- package/dist/components/navbar/Navbar.classes.js +41 -0
- package/dist/components/navbar/Navbar.js +2 -1
- package/dist/components/navbar/NavbarRow.js +3 -14
- package/dist/components/navbar/NavbarSection.js +2 -6
- package/dist/components/navbar/NavbarStack.js +2 -5
- package/dist/components/number-field/NumberField.classes.d.ts +27 -0
- package/dist/components/number-field/NumberField.classes.js +28 -0
- package/dist/components/number-field/NumberField.css +198 -0
- package/dist/components/number-field/NumberField.d.ts +48 -0
- package/dist/components/number-field/NumberField.js +347 -0
- package/dist/components/number-field/index.d.ts +1 -0
- package/dist/components/number-field/index.js +9 -0
- package/dist/components/search-field/SearchField.classes.d.ts +27 -0
- package/dist/components/search-field/SearchField.classes.js +28 -0
- package/dist/components/search-field/SearchField.css +183 -0
- package/dist/components/search-field/SearchField.d.ts +53 -0
- package/dist/components/search-field/SearchField.js +300 -0
- package/dist/components/search-field/index.d.ts +1 -0
- package/dist/components/search-field/index.js +9 -0
- package/dist/components/select/Select.css +16 -10
- package/dist/components/select/Select.d.ts +10 -2
- package/dist/components/select/Select.js +119 -33
- package/dist/components/separator/Separator.classes.d.ts +12 -0
- package/dist/components/separator/Separator.classes.js +13 -0
- package/dist/components/separator/Separator.css +35 -0
- package/dist/components/separator/Separator.d.ts +12 -0
- package/dist/components/separator/Separator.js +49 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +4 -0
- package/dist/components/sidenav/Sidenav.js +2 -2
- package/dist/components/surface/Surface.classes.d.ts +9 -0
- package/dist/components/surface/Surface.classes.js +10 -0
- package/dist/components/surface/Surface.css +37 -0
- package/dist/components/surface/Surface.d.ts +12 -0
- package/dist/components/{menu/MenuDetails.js → surface/Surface.js} +19 -20
- package/dist/components/surface/index.d.ts +1 -0
- package/dist/components/surface/index.js +4 -0
- package/dist/components/table/hooks/index.d.ts +1 -9
- package/dist/components/table/hooks/index.js +1 -18
- package/dist/components/tag/Tag.classes.d.ts +20 -0
- package/dist/components/tag/Tag.classes.js +21 -0
- package/dist/components/tag/Tag.css +121 -0
- package/dist/components/tag/Tag.d.ts +33 -0
- package/dist/components/tag/Tag.js +235 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +6 -0
- package/dist/components/tag-group/TagGroup.classes.d.ts +8 -0
- package/dist/components/tag-group/TagGroup.classes.js +9 -0
- package/dist/components/tag-group/TagGroup.css +22 -0
- package/dist/components/tag-group/TagGroup.d.ts +32 -0
- package/dist/components/tag-group/TagGroup.js +178 -0
- package/dist/components/tag-group/context.d.ts +15 -0
- package/dist/components/tag-group/context.js +3 -0
- package/dist/components/tag-group/index.d.ts +2 -0
- package/dist/components/tag-group/index.js +6 -0
- package/dist/components/text/Text.classes.d.ts +3 -0
- package/dist/components/text/Text.classes.js +4 -0
- package/dist/components/text/Text.css +66 -0
- package/dist/components/text/Text.d.ts +17 -0
- package/dist/components/text/Text.js +47 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +5 -0
- package/dist/components/text-area/TextArea.classes.d.ts +10 -0
- package/dist/components/text-area/TextArea.classes.js +11 -0
- package/dist/components/text-area/TextArea.css +95 -0
- package/dist/components/text-area/TextArea.d.ts +19 -0
- package/dist/components/text-area/TextArea.js +61 -0
- package/dist/components/text-area/index.d.ts +1 -0
- package/dist/components/text-area/index.js +5 -0
- package/dist/components/text-field/TextField.classes.d.ts +10 -0
- package/dist/components/text-field/TextField.classes.js +11 -0
- package/dist/components/text-field/TextField.css +33 -0
- package/dist/components/text-field/TextField.d.ts +34 -0
- package/dist/components/text-field/TextField.js +82 -0
- package/dist/components/text-field/index.d.ts +1 -0
- package/dist/components/text-field/index.js +7 -0
- package/dist/components/textarea/Textarea.d.ts +8 -13
- package/dist/components/textarea/Textarea.js +14 -45
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/index.js +4 -1
- package/dist/components/time-field/TimeField.classes.d.ts +37 -0
- package/dist/components/time-field/TimeField.classes.js +38 -0
- package/dist/components/time-field/TimeField.css +215 -0
- package/dist/components/time-field/TimeField.d.ts +64 -0
- package/dist/components/time-field/TimeField.js +334 -0
- package/dist/components/time-field/index.d.ts +1 -0
- package/dist/components/time-field/index.js +11 -0
- package/dist/components/utils.d.ts +2 -2
- package/dist/components/utils.js +3 -17
- package/dist/hooks/form/index.d.ts +5 -0
- package/dist/hooks/form/index.js +12 -0
- package/dist/hooks/form/useField.d.ts +11 -0
- package/dist/hooks/form/useField.js +20 -0
- package/dist/hooks/form/useFieldError.d.ts +3 -0
- package/dist/hooks/form/useFieldError.js +3 -0
- package/dist/hooks/form/useFieldMeta.d.ts +20 -0
- package/dist/hooks/form/useFieldMeta.js +49 -0
- package/dist/hooks/form/useFieldProps.d.ts +10 -0
- package/dist/hooks/form/useFieldProps.js +51 -0
- package/dist/hooks/form/useForm.d.ts +27 -0
- package/dist/hooks/form/useForm.js +54 -0
- package/dist/hooks/form/utils.d.ts +4 -0
- package/dist/hooks/form/utils.js +30 -0
- package/dist/hooks/layout/index.d.ts +1 -0
- package/dist/hooks/layout/index.js +3 -0
- package/dist/hooks/layout/useDesktop.d.ts +1 -0
- package/dist/hooks/layout/useDesktop.js +17 -0
- package/dist/hooks/table/index.d.ts +9 -0
- package/dist/hooks/table/index.js +18 -0
- package/dist/index.d.ts +59 -7
- package/dist/index.js +140 -15
- package/dist/styles/icons/generated-icons.css +1 -1
- package/package.json +1 -1
- package/dist/components/card/CardActions.d.ts +0 -4
- package/dist/components/card/CardActions.js +0 -15
- package/dist/components/card/CardBody.d.ts +0 -4
- package/dist/components/card/CardBody.js +0 -15
- package/dist/components/card/CardImage.d.ts +0 -3
- package/dist/components/card/CardImage.js +0 -10
- package/dist/components/card/CardTitle.d.ts +0 -6
- package/dist/components/card/CardTitle.js +0 -13
- package/dist/components/card/card.css +0 -171
- package/dist/components/form/FormBase.d.ts +0 -8
- package/dist/components/form/FormBase.js +0 -74
- package/dist/components/form/FormDropdown.d.ts +0 -25
- package/dist/components/form/FormDropdown.js +0 -139
- package/dist/components/form/FormField.d.ts +0 -14
- package/dist/components/form/FormField.js +0 -78
- package/dist/components/form/Label.d.ts +0 -7
- package/dist/components/form/NumberField.d.ts +0 -20
- package/dist/components/form/NumberField.js +0 -109
- package/dist/components/form/PasswordField.d.ts +0 -16
- package/dist/components/form/PasswordField.js +0 -113
- package/dist/components/form/ValidatedForm.d.ts +0 -26
- package/dist/components/form/ValidatedForm.js +0 -55
- package/dist/components/menu/MenuDetails.d.ts +0 -8
- package/dist/components/menu/MenuDropdown.d.ts +0 -12
- package/dist/components/menu/MenuDropdown.js +0 -48
- package/dist/components/menu/MenuTitle.d.ts +0 -8
- package/dist/components/menu/MenuTitle.js +0 -22
- package/dist/components/menu/menu.css +0 -364
- package/dist/components/textarea/textarea.css +0 -191
- /package/dist/{components/table/hooks → hooks/table}/helpers.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/helpers.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useAnchoredOverlayPosition.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useAnchoredOverlayPosition.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableExpansion.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableExpansion.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableFiltering.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableFiltering.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableModel.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableModel.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTablePagination.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTablePagination.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableSelection.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableSelection.js +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableSorting.d.ts +0 -0
- /package/dist/{components/table/hooks → hooks/table}/useTableSorting.js +0 -0
|
@@ -2,7 +2,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web
|
|
|
2
2
|
import "./Breadcrumbs.css";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
5
|
-
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__Breadcrumbs_classes_js_83219ed5__ from "./Breadcrumbs.classes.js";
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg aria-hidden=true data-slot=breadcrumbs-separator fill=none height=12 viewBox="0 0 24 24"width=12 xmlns=http://www.w3.org/2000/svg><path d="M9 18l6-6-6-6"stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2>'), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<nav>"), _tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a data-slot=breadcrumbs-link>"), _tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span data-slot=breadcrumbs-separator>"), _tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li>"), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span data-slot=breadcrumbs-link>");
|
|
6
7
|
const BreadcrumbsContext = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createContext)();
|
|
7
8
|
const useBreadcrumbsContext = ()=>{
|
|
8
9
|
const ctx = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(BreadcrumbsContext);
|
|
@@ -29,7 +30,7 @@ const BreadcrumbsRoot = (props)=>{
|
|
|
29
30
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
30
31
|
"aria-label": "Breadcrumbs",
|
|
31
32
|
get ["class"] () {
|
|
32
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(
|
|
33
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__Breadcrumbs_classes_js_83219ed5__.CLASSES.Root.base, local.class, local.className);
|
|
33
34
|
},
|
|
34
35
|
"data-slot": "breadcrumbs",
|
|
35
36
|
get ["data-theme"] () {
|
|
@@ -44,6 +45,7 @@ const BreadcrumbsRoot = (props)=>{
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
};
|
|
48
|
+
const [ITEM_CLASS, LINK_CLASS, SEPARATOR_CLASS] = __WEBPACK_EXTERNAL_MODULE__Breadcrumbs_classes_js_83219ed5__.CLASSES.Item.base;
|
|
47
49
|
const BreadcrumbsItem = (props)=>{
|
|
48
50
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
49
51
|
"children",
|
|
@@ -59,7 +61,7 @@ const BreadcrumbsItem = (props)=>{
|
|
|
59
61
|
var _el$3 = _tmpl$5();
|
|
60
62
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
61
63
|
get ["class"] () {
|
|
62
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(
|
|
64
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(ITEM_CLASS, local.class, local.className);
|
|
63
65
|
},
|
|
64
66
|
"data-slot": "breadcrumbs-item",
|
|
65
67
|
get ["data-theme"] () {
|
|
@@ -76,6 +78,7 @@ const BreadcrumbsItem = (props)=>{
|
|
|
76
78
|
get fallback () {
|
|
77
79
|
return (()=>{
|
|
78
80
|
var _el$6 = _tmpl$6();
|
|
81
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, LINK_CLASS);
|
|
79
82
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.children);
|
|
80
83
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
81
84
|
var _v$ = local.isCurrent ? "true" : void 0, _v$2 = local.isCurrent ? "page" : void 0;
|
|
@@ -91,6 +94,7 @@ const BreadcrumbsItem = (props)=>{
|
|
|
91
94
|
},
|
|
92
95
|
get children () {
|
|
93
96
|
var _el$4 = _tmpl$3();
|
|
97
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, LINK_CLASS);
|
|
94
98
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.children);
|
|
95
99
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "href", local.href));
|
|
96
100
|
return _el$4;
|
|
@@ -102,6 +106,7 @@ const BreadcrumbsItem = (props)=>{
|
|
|
102
106
|
},
|
|
103
107
|
get children () {
|
|
104
108
|
var _el$5 = _tmpl$4();
|
|
109
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, SEPARATOR_CLASS);
|
|
105
110
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>ctx.separator() ?? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ChevronRight, {}));
|
|
106
111
|
return _el$5;
|
|
107
112
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const CLASSES: {
|
|
2
|
+
readonly base: "button";
|
|
3
|
+
readonly variant: {
|
|
4
|
+
readonly primary: "button--primary";
|
|
5
|
+
readonly secondary: "button--secondary";
|
|
6
|
+
readonly tertiary: "button--tertiary";
|
|
7
|
+
readonly outline: "button--outline";
|
|
8
|
+
readonly ghost: "button--ghost";
|
|
9
|
+
readonly danger: "button--danger";
|
|
10
|
+
readonly "danger-soft": "button--danger-soft";
|
|
11
|
+
};
|
|
12
|
+
readonly size: {
|
|
13
|
+
readonly sm: "button--sm";
|
|
14
|
+
readonly md: "button--md";
|
|
15
|
+
readonly lg: "button--lg";
|
|
16
|
+
};
|
|
17
|
+
readonly flag: {
|
|
18
|
+
readonly isIconOnly: "button--icon-only";
|
|
19
|
+
readonly fullWidth: "button--full-width";
|
|
20
|
+
};
|
|
21
|
+
readonly slot: {
|
|
22
|
+
readonly spinner: "button__spinner";
|
|
23
|
+
readonly icon: "button__icon";
|
|
24
|
+
readonly iconStart: "button__icon--start";
|
|
25
|
+
readonly iconEnd: "button__icon--end";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const CLASSES = {
|
|
2
|
+
base: "button",
|
|
3
|
+
variant: {
|
|
4
|
+
primary: "button--primary",
|
|
5
|
+
secondary: "button--secondary",
|
|
6
|
+
tertiary: "button--tertiary",
|
|
7
|
+
outline: "button--outline",
|
|
8
|
+
ghost: "button--ghost",
|
|
9
|
+
danger: "button--danger",
|
|
10
|
+
"danger-soft": "button--danger-soft"
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
sm: "button--sm",
|
|
14
|
+
md: "button--md",
|
|
15
|
+
lg: "button--lg"
|
|
16
|
+
},
|
|
17
|
+
flag: {
|
|
18
|
+
isIconOnly: "button--icon-only",
|
|
19
|
+
fullWidth: "button--full-width"
|
|
20
|
+
},
|
|
21
|
+
slot: {
|
|
22
|
+
spinner: "button__spinner",
|
|
23
|
+
icon: "button__icon",
|
|
24
|
+
iconStart: "button__icon--start",
|
|
25
|
+
iconEnd: "button__icon--end"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export { CLASSES };
|
|
@@ -64,7 +64,10 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
.button__icon {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
68
71
|
pointer-events: none;
|
|
69
72
|
margin-block: 0.125rem;
|
|
70
73
|
height: 1rem;
|
|
@@ -73,6 +76,12 @@
|
|
|
73
76
|
align-self: center;
|
|
74
77
|
}
|
|
75
78
|
|
|
79
|
+
.button__icon > * {
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
76
85
|
.button--sm {
|
|
77
86
|
height: 2.25rem;
|
|
78
87
|
padding-inline: 0.75rem;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./Button.css";
|
|
2
2
|
import { type JSX } from "solid-js";
|
|
3
|
-
|
|
4
|
-
type
|
|
3
|
+
import { CLASSES } from "./Button.classes";
|
|
4
|
+
export type ButtonVariant = keyof typeof CLASSES.variant;
|
|
5
|
+
export type ButtonSize = keyof typeof CLASSES.size;
|
|
5
6
|
type ButtonProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "disabled"> & {
|
|
6
7
|
variant?: ButtonVariant;
|
|
7
8
|
size?: ButtonSize;
|
|
@@ -9,8 +10,10 @@ type ButtonProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "disabled">
|
|
|
9
10
|
fullWidth?: boolean;
|
|
10
11
|
isDisabled?: boolean;
|
|
11
12
|
isPending?: boolean;
|
|
13
|
+
startIcon?: JSX.Element;
|
|
14
|
+
endIcon?: JSX.Element;
|
|
12
15
|
className?: string;
|
|
13
16
|
};
|
|
14
17
|
declare const Button: (props: ButtonProps) => JSX.Element;
|
|
15
18
|
export default Button;
|
|
16
|
-
export type { ButtonProps
|
|
19
|
+
export type { ButtonProps };
|
|
@@ -2,21 +2,9 @@ import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web
|
|
|
2
2
|
import "./Button.css";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
secondary: "button--secondary",
|
|
9
|
-
tertiary: "button--tertiary",
|
|
10
|
-
outline: "button--outline",
|
|
11
|
-
ghost: "button--ghost",
|
|
12
|
-
danger: "button--danger",
|
|
13
|
-
"danger-soft": "button--danger-soft"
|
|
14
|
-
};
|
|
15
|
-
const SIZE_CLASS_MAP = {
|
|
16
|
-
sm: "button--sm",
|
|
17
|
-
md: "button--md",
|
|
18
|
-
lg: "button--lg"
|
|
19
|
-
};
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__button_group_context_js_9dfe2267__ from "../button-group/context.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__ from "./Button.classes.js";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span data-slot=spinner aria-hidden=true>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span data-slot=button-start-icon>"), _tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span data-slot=button-end-icon>"), _tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button>");
|
|
20
8
|
const Button = (props)=>{
|
|
21
9
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
22
10
|
"children",
|
|
@@ -28,14 +16,18 @@ const Button = (props)=>{
|
|
|
28
16
|
"fullWidth",
|
|
29
17
|
"isDisabled",
|
|
30
18
|
"isPending",
|
|
19
|
+
"startIcon",
|
|
20
|
+
"endIcon",
|
|
31
21
|
"type"
|
|
32
22
|
]);
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
23
|
+
const buttonGroupContext = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(__WEBPACK_EXTERNAL_MODULE__button_group_context_js_9dfe2267__.ButtonGroupContext);
|
|
24
|
+
const variant = ()=>local.variant ?? buttonGroupContext?.variant() ?? "primary";
|
|
25
|
+
const size = ()=>local.size ?? buttonGroupContext?.size() ?? "md";
|
|
26
|
+
const fullWidth = ()=>local.fullWidth ?? buttonGroupContext?.fullWidth();
|
|
27
|
+
const disabled = ()=>Boolean(local.isDisabled ?? buttonGroupContext?.isDisabled()) || Boolean(local.isPending);
|
|
28
|
+
const classes = ()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.base, __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.variant[variant()], __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.size[size()], local.isIconOnly && __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.flag.isIconOnly, fullWidth() && __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.flag.fullWidth, local.class, local.className);
|
|
37
29
|
return (()=>{
|
|
38
|
-
var _el$ = _tmpl$
|
|
30
|
+
var _el$ = _tmpl$4();
|
|
39
31
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
40
32
|
get type () {
|
|
41
33
|
return local.type ?? "button";
|
|
@@ -59,10 +51,34 @@ const Button = (props)=>{
|
|
|
59
51
|
return local.isPending;
|
|
60
52
|
},
|
|
61
53
|
get children () {
|
|
62
|
-
|
|
54
|
+
var _el$2 = _tmpl$();
|
|
55
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.slot.spinner));
|
|
56
|
+
return _el$2;
|
|
57
|
+
}
|
|
58
|
+
}), null);
|
|
59
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
60
|
+
get when () {
|
|
61
|
+
return local.startIcon;
|
|
62
|
+
},
|
|
63
|
+
get children () {
|
|
64
|
+
var _el$3 = _tmpl$2();
|
|
65
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.startIcon);
|
|
66
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.slot.icon, __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.slot.iconStart)));
|
|
67
|
+
return _el$3;
|
|
63
68
|
}
|
|
64
69
|
}), null);
|
|
65
70
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children, null);
|
|
71
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
72
|
+
get when () {
|
|
73
|
+
return local.endIcon;
|
|
74
|
+
},
|
|
75
|
+
get children () {
|
|
76
|
+
var _el$4 = _tmpl$3();
|
|
77
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.endIcon);
|
|
78
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.slot.icon, __WEBPACK_EXTERNAL_MODULE__Button_classes_js_e06fc199__.CLASSES.slot.iconEnd)));
|
|
79
|
+
return _el$4;
|
|
80
|
+
}
|
|
81
|
+
}), null);
|
|
66
82
|
return _el$;
|
|
67
83
|
})();
|
|
68
84
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const CLASSES: {
|
|
2
|
+
readonly Root: {
|
|
3
|
+
readonly base: "button-group";
|
|
4
|
+
readonly orientation: {
|
|
5
|
+
readonly horizontal: "button-group--horizontal";
|
|
6
|
+
readonly vertical: "button-group--vertical";
|
|
7
|
+
};
|
|
8
|
+
readonly flag: {
|
|
9
|
+
readonly fullWidth: "button-group--full-width";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly Separator: {
|
|
13
|
+
readonly base: "button-group__separator";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const CLASSES = {
|
|
2
|
+
Root: {
|
|
3
|
+
base: "button-group",
|
|
4
|
+
orientation: {
|
|
5
|
+
horizontal: "button-group--horizontal",
|
|
6
|
+
vertical: "button-group--vertical"
|
|
7
|
+
},
|
|
8
|
+
flag: {
|
|
9
|
+
fullWidth: "button-group--full-width"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
Separator: {
|
|
13
|
+
base: "button-group__separator"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export { CLASSES };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.button-group {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
height: auto;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.button-group--horizontal {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.button-group--vertical {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.button-group .button {
|
|
19
|
+
border-radius: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.button-group--horizontal .button:first-child {
|
|
23
|
+
border-start-start-radius: 1.5rem;
|
|
24
|
+
border-end-start-radius: 1.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.button-group--horizontal .button:last-child {
|
|
28
|
+
border-start-end-radius: 1.5rem;
|
|
29
|
+
border-end-end-radius: 1.5rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.button-group--horizontal .button:first-child:last-child {
|
|
33
|
+
border-radius: 1.5rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.button-group--vertical .button:first-child {
|
|
37
|
+
border-top-left-radius: 1.5rem;
|
|
38
|
+
border-top-right-radius: 1.5rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.button-group--vertical .button:last-child {
|
|
42
|
+
border-bottom-left-radius: 1.5rem;
|
|
43
|
+
border-bottom-right-radius: 1.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.button-group--vertical .button:first-child:last-child {
|
|
47
|
+
border-radius: 1.5rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.button-group .button:active,
|
|
51
|
+
.button-group .button[data-pressed="true"] {
|
|
52
|
+
transform: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.button-group .button:focus-visible,
|
|
56
|
+
.button-group .button[data-focus-visible="true"] {
|
|
57
|
+
outline-offset: -1px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.button-group__separator {
|
|
61
|
+
background-color: currentColor;
|
|
62
|
+
opacity: 0.15;
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
position: absolute;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
transition: opacity 150ms var(--ease-smooth);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (prefers-reduced-motion: reduce) {
|
|
70
|
+
.button-group__separator {
|
|
71
|
+
transition: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.button-group--horizontal .button-group__separator {
|
|
76
|
+
left: -1px;
|
|
77
|
+
top: 25%;
|
|
78
|
+
width: 1px;
|
|
79
|
+
height: 50%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.button-group--vertical .button-group__separator {
|
|
83
|
+
left: 25%;
|
|
84
|
+
top: -1px;
|
|
85
|
+
width: 50%;
|
|
86
|
+
height: 1px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.button-group--horizontal .button--outline:first-child {
|
|
90
|
+
border-inline-end-width: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.button-group--horizontal .button--outline:last-child {
|
|
94
|
+
border-inline-start-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.button-group--horizontal .button--outline:not(:first-child):not(:last-child) {
|
|
98
|
+
border-inline-width: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.button-group--vertical .button--outline:first-child {
|
|
102
|
+
border-bottom-width: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.button-group--vertical .button--outline:last-child {
|
|
106
|
+
border-top-width: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.button-group--vertical .button--outline:not(:first-child):not(:last-child) {
|
|
110
|
+
border-top-width: 0;
|
|
111
|
+
border-bottom-width: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.button-group--full-width {
|
|
115
|
+
width: 100%;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./ButtonGroup.css";
|
|
2
|
+
import { type Component, type JSX, type ParentComponent } from "solid-js";
|
|
3
|
+
import type { ButtonSize, ButtonVariant } from "../button";
|
|
4
|
+
import type { IComponentBaseProps } from "../types";
|
|
5
|
+
export type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
6
|
+
export type ButtonGroupRootProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
7
|
+
children?: JSX.Element;
|
|
8
|
+
orientation?: ButtonGroupOrientation;
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
variant?: ButtonVariant;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ButtonGroupSeparatorProps = Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children"> & IComponentBaseProps;
|
|
15
|
+
declare const ButtonGroupRoot: ParentComponent<ButtonGroupRootProps>;
|
|
16
|
+
declare const ButtonGroupSeparator: Component<ButtonGroupSeparatorProps>;
|
|
17
|
+
declare const ButtonGroup: ParentComponent<ButtonGroupRootProps> & {
|
|
18
|
+
Root: ParentComponent<ButtonGroupRootProps>;
|
|
19
|
+
Separator: Component<ButtonGroupSeparatorProps>;
|
|
20
|
+
};
|
|
21
|
+
export default ButtonGroup;
|
|
22
|
+
export { ButtonGroup, ButtonGroupRoot, ButtonGroupSeparator };
|
|
23
|
+
export type { ButtonGroupRootProps as ButtonGroupProps };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import "./ButtonGroup.css";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ButtonGroup_classes_js_da79d854__ from "./ButtonGroup.classes.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__context_js_80e2871f__ from "./context.js";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span>");
|
|
8
|
+
const ButtonGroupRoot = (props)=>{
|
|
9
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10
|
+
"children",
|
|
11
|
+
"class",
|
|
12
|
+
"className",
|
|
13
|
+
"dataTheme",
|
|
14
|
+
"style",
|
|
15
|
+
"orientation",
|
|
16
|
+
"size",
|
|
17
|
+
"variant",
|
|
18
|
+
"isDisabled",
|
|
19
|
+
"fullWidth",
|
|
20
|
+
"role"
|
|
21
|
+
]);
|
|
22
|
+
const orientation = ()=>local.orientation ?? "horizontal";
|
|
23
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__context_js_80e2871f__.ButtonGroupContext.Provider, {
|
|
24
|
+
value: {
|
|
25
|
+
size: ()=>local.size,
|
|
26
|
+
variant: ()=>local.variant,
|
|
27
|
+
isDisabled: ()=>local.isDisabled,
|
|
28
|
+
fullWidth: ()=>local.fullWidth
|
|
29
|
+
},
|
|
30
|
+
get children () {
|
|
31
|
+
var _el$ = _tmpl$();
|
|
32
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
33
|
+
get ["class"] () {
|
|
34
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__ButtonGroup_classes_js_da79d854__.CLASSES.Root.base, __WEBPACK_EXTERNAL_MODULE__ButtonGroup_classes_js_da79d854__.CLASSES.Root.orientation[orientation()], local.fullWidth && __WEBPACK_EXTERNAL_MODULE__ButtonGroup_classes_js_da79d854__.CLASSES.Root.flag.fullWidth, local.class, local.className);
|
|
35
|
+
},
|
|
36
|
+
"data-slot": "button-group",
|
|
37
|
+
get ["data-orientation"] () {
|
|
38
|
+
return orientation();
|
|
39
|
+
},
|
|
40
|
+
get ["data-theme"] () {
|
|
41
|
+
return local.dataTheme;
|
|
42
|
+
},
|
|
43
|
+
get style () {
|
|
44
|
+
return local.style;
|
|
45
|
+
},
|
|
46
|
+
get role () {
|
|
47
|
+
return local.role ?? "group";
|
|
48
|
+
},
|
|
49
|
+
get ["aria-disabled"] () {
|
|
50
|
+
return local.isDisabled ? "true" : void 0;
|
|
51
|
+
}
|
|
52
|
+
}), false, true);
|
|
53
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
54
|
+
return _el$;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const ButtonGroupSeparator = (props)=>{
|
|
59
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
60
|
+
"class",
|
|
61
|
+
"className",
|
|
62
|
+
"dataTheme",
|
|
63
|
+
"style"
|
|
64
|
+
]);
|
|
65
|
+
return (()=>{
|
|
66
|
+
var _el$2 = _tmpl$2();
|
|
67
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
68
|
+
"aria-hidden": "true",
|
|
69
|
+
get ["class"] () {
|
|
70
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(__WEBPACK_EXTERNAL_MODULE__ButtonGroup_classes_js_da79d854__.CLASSES.Separator.base, local.class, local.className);
|
|
71
|
+
},
|
|
72
|
+
"data-slot": "button-group-separator",
|
|
73
|
+
get ["data-theme"] () {
|
|
74
|
+
return local.dataTheme;
|
|
75
|
+
},
|
|
76
|
+
get style () {
|
|
77
|
+
return local.style;
|
|
78
|
+
}
|
|
79
|
+
}), false, false);
|
|
80
|
+
return _el$2;
|
|
81
|
+
})();
|
|
82
|
+
};
|
|
83
|
+
const ButtonGroup = Object.assign(ButtonGroupRoot, {
|
|
84
|
+
Root: ButtonGroupRoot,
|
|
85
|
+
Separator: ButtonGroupSeparator
|
|
86
|
+
});
|
|
87
|
+
const button_group_ButtonGroup = ButtonGroup;
|
|
88
|
+
export { ButtonGroup, ButtonGroupRoot, ButtonGroupSeparator, button_group_ButtonGroup as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ButtonSize, ButtonVariant } from "../button";
|
|
2
|
+
export type ButtonGroupContextValue = {
|
|
3
|
+
size: () => ButtonSize | undefined;
|
|
4
|
+
variant: () => ButtonVariant | undefined;
|
|
5
|
+
isDisabled: () => boolean | undefined;
|
|
6
|
+
fullWidth: () => boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare const ButtonGroupContext: import("solid-js").Context<ButtonGroupContextValue | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, ButtonGroup, ButtonGroupRoot, ButtonGroupSeparator, type ButtonGroupProps, type ButtonGroupRootProps, type ButtonGroupSeparatorProps, type ButtonGroupOrientation, } from "./ButtonGroup";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ButtonGroup_js_df72aaf5__ from "./ButtonGroup.js";
|
|
2
|
+
var __webpack_exports__ButtonGroup = __WEBPACK_EXTERNAL_MODULE__ButtonGroup_js_df72aaf5__.ButtonGroup;
|
|
3
|
+
var __webpack_exports__ButtonGroupRoot = __WEBPACK_EXTERNAL_MODULE__ButtonGroup_js_df72aaf5__.ButtonGroupRoot;
|
|
4
|
+
var __webpack_exports__ButtonGroupSeparator = __WEBPACK_EXTERNAL_MODULE__ButtonGroup_js_df72aaf5__.ButtonGroupSeparator;
|
|
5
|
+
var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE__ButtonGroup_js_df72aaf5__["default"];
|
|
6
|
+
export { __webpack_exports__ButtonGroup as ButtonGroup, __webpack_exports__ButtonGroupRoot as ButtonGroupRoot, __webpack_exports__ButtonGroupSeparator as ButtonGroupSeparator, __webpack_exports__default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const CLASSES: {
|
|
2
|
+
readonly Root: {
|
|
3
|
+
readonly base: "card";
|
|
4
|
+
readonly variant: {
|
|
5
|
+
readonly default: "card--default";
|
|
6
|
+
readonly flat: "card--flat";
|
|
7
|
+
readonly bordered: "card--bordered";
|
|
8
|
+
readonly shadow: "card--shadow";
|
|
9
|
+
};
|
|
10
|
+
readonly flag: {
|
|
11
|
+
readonly isHoverable: "card--hoverable";
|
|
12
|
+
readonly isPressable: "card--pressable";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly Header: {
|
|
16
|
+
readonly base: "card__header";
|
|
17
|
+
};
|
|
18
|
+
readonly Body: {
|
|
19
|
+
readonly base: "card__body";
|
|
20
|
+
};
|
|
21
|
+
readonly Footer: {
|
|
22
|
+
readonly base: "card__footer";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const CLASSES = {
|
|
2
|
+
Root: {
|
|
3
|
+
base: "card",
|
|
4
|
+
variant: {
|
|
5
|
+
default: "card--default",
|
|
6
|
+
flat: "card--flat",
|
|
7
|
+
bordered: "card--bordered",
|
|
8
|
+
shadow: "card--shadow"
|
|
9
|
+
},
|
|
10
|
+
flag: {
|
|
11
|
+
isHoverable: "card--hoverable",
|
|
12
|
+
isPressable: "card--pressable"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
Header: {
|
|
16
|
+
base: "card__header"
|
|
17
|
+
},
|
|
18
|
+
Body: {
|
|
19
|
+
base: "card__body"
|
|
20
|
+
},
|
|
21
|
+
Footer: {
|
|
22
|
+
base: "card__footer"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export { CLASSES };
|