@pathscale/ui 1.1.34 → 1.1.35
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/button/Button.css +10 -1
- package/dist/components/button/Button.d.ts +2 -0
- package/dist/components/button/Button.js +31 -6
- 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 +91 -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.css +110 -0
- package/dist/components/card/Card.d.ts +26 -26
- package/dist/components/card/Card.js +131 -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.css +10 -0
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +18 -0
- package/dist/components/checkbox-group/CheckboxGroup.js +97 -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.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.css +344 -0
- package/dist/components/combo-box/ComboBox.d.ts +86 -0
- package/dist/components/combo-box/ComboBox.js +708 -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.css +215 -0
- package/dist/components/date-field/DateField.d.ts +64 -0
- package/dist/components/date-field/DateField.js +341 -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.css +10 -0
- package/dist/components/description/Description.d.ts +11 -0
- package/dist/components/{form/Label.js → description/Description.js} +23 -14
- 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.css +20 -0
- package/dist/components/error-message/ErrorMessage.d.ts +11 -0
- package/dist/components/error-message/ErrorMessage.js +40 -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.css +27 -0
- package/dist/components/field-error/FieldError.d.ts +21 -0
- package/dist/components/field-error/FieldError.js +69 -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.css +30 -0
- package/dist/components/fieldset/Fieldset.d.ts +22 -9
- package/dist/components/fieldset/Fieldset.js +88 -44
- package/dist/components/fieldset/index.d.ts +1 -2
- package/dist/components/fieldset/index.js +7 -2
- package/dist/components/form/Form.css +5 -0
- package/dist/components/form/Form.d.ts +10 -16
- package/dist/components/form/Form.js +33 -16
- package/dist/components/form/index.d.ts +1 -4
- package/dist/components/form/index.js +3 -4
- package/dist/components/header/Header.css +13 -0
- package/dist/components/header/Header.d.ts +9 -0
- package/dist/components/{menu/MenuDetails.js → header/Header.js} +17 -20
- 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.css +172 -0
- package/dist/components/input-group/InputGroup.d.ts +44 -0
- package/dist/components/input-group/InputGroup.js +227 -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.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.css +30 -0
- package/dist/components/label/Label.d.ts +17 -0
- package/dist/components/label/Label.js +64 -0
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/label/index.js +5 -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 +224 -0
- package/dist/components/list-box/ListBoxItem.d.ts +28 -0
- package/dist/components/list-box/ListBoxItem.js +231 -0
- package/dist/components/list-box/ListBoxSection.d.ts +11 -0
- package/dist/components/list-box/ListBoxSection.js +48 -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.css +199 -0
- package/dist/components/menu/Menu.d.ts +32 -20
- package/dist/components/menu/Menu.js +213 -39
- package/dist/components/menu/MenuItem.d.ts +35 -5
- package/dist/components/menu/MenuItem.js +270 -19
- package/dist/components/menu/MenuSection.d.ts +11 -0
- package/dist/components/menu/MenuSection.js +48 -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/number-field/NumberField.css +198 -0
- package/dist/components/number-field/NumberField.d.ts +48 -0
- package/dist/components/number-field/NumberField.js +350 -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.css +183 -0
- package/dist/components/search-field/SearchField.d.ts +53 -0
- package/dist/components/search-field/SearchField.js +303 -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.css +35 -0
- package/dist/components/separator/Separator.d.ts +12 -0
- package/dist/components/separator/Separator.js +57 -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.css +37 -0
- package/dist/components/surface/Surface.d.ts +12 -0
- package/dist/components/surface/Surface.js +41 -0
- 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.css +121 -0
- package/dist/components/tag/Tag.d.ts +33 -0
- package/dist/components/tag/Tag.js +241 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +6 -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 +177 -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.css +66 -0
- package/dist/components/text/Text.d.ts +17 -0
- package/dist/components/text/Text.js +46 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +5 -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 +64 -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.css +33 -0
- package/dist/components/text-field/TextField.d.ts +34 -0
- package/dist/components/text-field/TextField.js +85 -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.css +215 -0
- package/dist/components/time-field/TimeField.d.ts +64 -0
- package/dist/components/time-field/TimeField.js +341 -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
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__input_index_js_00da0e74__ from "../input/index.js";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__ from "../icon/index.js";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__ValidatedForm_js_56b86c0b__ from "./ValidatedForm.js";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
7
|
-
import * as __WEBPACK_EXTERNAL_MODULE__Label_js_56960635__ from "./Label.js";
|
|
8
|
-
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<p>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), _tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<span class="text-error ml-1">*'), _tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span class=cursor-pointer role=button>");
|
|
9
|
-
const PasswordField = (props)=>{
|
|
10
|
-
const [showPassword, setShowPassword] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
11
|
-
const { errors, touched } = (0, __WEBPACK_EXTERNAL_MODULE__ValidatedForm_js_56b86c0b__.useFormValidation)();
|
|
12
|
-
const [local, inputProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
13
|
-
"label",
|
|
14
|
-
"required",
|
|
15
|
-
"labelClass",
|
|
16
|
-
"errorClass",
|
|
17
|
-
"containerClass",
|
|
18
|
-
"description",
|
|
19
|
-
"descriptionClass",
|
|
20
|
-
"showPasswordIcon",
|
|
21
|
-
"hidePasswordIcon",
|
|
22
|
-
"class",
|
|
23
|
-
"className"
|
|
24
|
-
]);
|
|
25
|
-
const togglePassword = ()=>setShowPassword(!showPassword());
|
|
26
|
-
const containerClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("flex flex-col gap-2", local.containerClass));
|
|
27
|
-
const descriptionClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("text-sm text-base-content/70", local.descriptionClass));
|
|
28
|
-
const errorClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("text-error text-sm", local.errorClass));
|
|
29
|
-
const inputClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(local.class, local.className));
|
|
30
|
-
const hasError = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>touched(props.name) && !!errors(props.name));
|
|
31
|
-
const passwordIcon = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
32
|
-
if (showPassword()) return local.hidePasswordIcon || (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
33
|
-
name: "icon-[mdi-light--eye-off]",
|
|
34
|
-
width: 20,
|
|
35
|
-
height: 20
|
|
36
|
-
});
|
|
37
|
-
return local.showPasswordIcon || (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__icon_index_js_1f7a158c__["default"], {
|
|
38
|
-
name: "icon-[mdi-light--eye]",
|
|
39
|
-
width: 20,
|
|
40
|
-
height: 20
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
return (()=>{
|
|
44
|
-
var _el$ = _tmpl$2();
|
|
45
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
46
|
-
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.label);
|
|
47
|
-
return ()=>_c$() && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__Label_js_56960635__["default"], {
|
|
48
|
-
get title () {
|
|
49
|
-
return local.label;
|
|
50
|
-
},
|
|
51
|
-
get ["class"] () {
|
|
52
|
-
return local.labelClass;
|
|
53
|
-
},
|
|
54
|
-
get children () {
|
|
55
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.required)() && _tmpl$3();
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
})(), null);
|
|
59
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
60
|
-
var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.description);
|
|
61
|
-
return ()=>_c$2() && (()=>{
|
|
62
|
-
var _el$4 = _tmpl$();
|
|
63
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.description);
|
|
64
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, descriptionClasses()));
|
|
65
|
-
return _el$4;
|
|
66
|
-
})();
|
|
67
|
-
})(), null);
|
|
68
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__input_index_js_00da0e74__["default"], (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
69
|
-
get id () {
|
|
70
|
-
return props.name;
|
|
71
|
-
},
|
|
72
|
-
get type () {
|
|
73
|
-
return showPassword() ? "text" : "password";
|
|
74
|
-
},
|
|
75
|
-
get ["aria-invalid"] () {
|
|
76
|
-
return hasError();
|
|
77
|
-
},
|
|
78
|
-
get ["aria-required"] () {
|
|
79
|
-
return local.required;
|
|
80
|
-
},
|
|
81
|
-
get ["class"] () {
|
|
82
|
-
return inputClasses();
|
|
83
|
-
},
|
|
84
|
-
get endContent () {
|
|
85
|
-
return (()=>{
|
|
86
|
-
var _el$5 = _tmpl$4();
|
|
87
|
-
_el$5.$$click = togglePassword;
|
|
88
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, passwordIcon);
|
|
89
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "aria-label", showPassword() ? "Hide password" : "Show password"));
|
|
90
|
-
return _el$5;
|
|
91
|
-
})();
|
|
92
|
-
}
|
|
93
|
-
}, inputProps)), null);
|
|
94
|
-
(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, {
|
|
95
|
-
get when () {
|
|
96
|
-
return hasError();
|
|
97
|
-
},
|
|
98
|
-
get children () {
|
|
99
|
-
var _el$2 = _tmpl$();
|
|
100
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>errors(props.name));
|
|
101
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, errorClasses()));
|
|
102
|
-
return _el$2;
|
|
103
|
-
}
|
|
104
|
-
}), null);
|
|
105
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, containerClasses()));
|
|
106
|
-
return _el$;
|
|
107
|
-
})();
|
|
108
|
-
};
|
|
109
|
-
const form_PasswordField = PasswordField;
|
|
110
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
111
|
-
"click"
|
|
112
|
-
]);
|
|
113
|
-
export { PasswordField, form_PasswordField as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type JSX } from "solid-js";
|
|
2
|
-
import type { z } from "zod";
|
|
3
|
-
import type { ObjectSetter, Paths } from "@felte/common";
|
|
4
|
-
import { type FormProps } from "./FormBase";
|
|
5
|
-
export type ValidatedFormProps<T extends z.ZodTypeAny> = Omit<FormProps, "onSubmit"> & {
|
|
6
|
-
schema: T;
|
|
7
|
-
onSubmit: (values: z.infer<T>) => void | Promise<void>;
|
|
8
|
-
initialValues?: z.infer<T>;
|
|
9
|
-
children?: JSX.Element | (() => JSX.Element);
|
|
10
|
-
};
|
|
11
|
-
interface FormValidationContext<T extends z.ZodTypeAny = z.ZodTypeAny> {
|
|
12
|
-
errors: (path?: string | ((data: any) => any)) => any;
|
|
13
|
-
touched: (path?: string | ((data: any) => any)) => any;
|
|
14
|
-
data: (path?: string | ((data: any) => any)) => any;
|
|
15
|
-
isValid: () => boolean;
|
|
16
|
-
isSubmitting: () => boolean;
|
|
17
|
-
setData: ObjectSetter<z.infer<T>, Paths<z.infer<T>>>;
|
|
18
|
-
setErrors: (errors: any) => void;
|
|
19
|
-
setWarnings: (warnings: any) => void;
|
|
20
|
-
setTouched: (touched: any) => void;
|
|
21
|
-
reset: () => void;
|
|
22
|
-
}
|
|
23
|
-
declare const FormValidationContext: import("solid-js").Context<FormValidationContext<z.ZodTypeAny> | undefined>;
|
|
24
|
-
export declare function useFormValidation<T extends z.ZodTypeAny = z.ZodTypeAny>(): FormValidationContext<T>;
|
|
25
|
-
declare function ValidatedForm<T extends z.ZodTypeAny>(props: ValidatedFormProps<T>): JSX.Element;
|
|
26
|
-
export default ValidatedForm;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__felte_solid_6a709b1d__ from "@felte/solid";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__felte_validator_zod_bb07151a__ from "@felte/validator-zod";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__FormBase_js_90e50c3a__ from "./FormBase.js";
|
|
6
|
-
const FormValidationContext = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createContext)();
|
|
7
|
-
function useFormValidation() {
|
|
8
|
-
const context = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(FormValidationContext);
|
|
9
|
-
if (!context) throw new Error("useFormValidation must be used within a ValidatedForm");
|
|
10
|
-
return context;
|
|
11
|
-
}
|
|
12
|
-
function ValidatedForm(props) {
|
|
13
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
14
|
-
"children",
|
|
15
|
-
"schema",
|
|
16
|
-
"onSubmit",
|
|
17
|
-
"initialValues"
|
|
18
|
-
]);
|
|
19
|
-
const { form, errors, touched, data, isValid, isSubmitting, setData, setErrors, setWarnings, setTouched, reset } = (0, __WEBPACK_EXTERNAL_MODULE__felte_solid_6a709b1d__.createForm)({
|
|
20
|
-
initialValues: local.initialValues,
|
|
21
|
-
extend: [
|
|
22
|
-
(0, __WEBPACK_EXTERNAL_MODULE__felte_validator_zod_bb07151a__.validator)({
|
|
23
|
-
schema: local.schema
|
|
24
|
-
})
|
|
25
|
-
],
|
|
26
|
-
onSubmit: local.onSubmit
|
|
27
|
-
});
|
|
28
|
-
const contextValue = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>({
|
|
29
|
-
errors,
|
|
30
|
-
touched,
|
|
31
|
-
data,
|
|
32
|
-
isValid,
|
|
33
|
-
isSubmitting,
|
|
34
|
-
setData,
|
|
35
|
-
setErrors,
|
|
36
|
-
setWarnings,
|
|
37
|
-
setTouched,
|
|
38
|
-
reset
|
|
39
|
-
}));
|
|
40
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FormValidationContext.Provider, {
|
|
41
|
-
get value () {
|
|
42
|
-
return contextValue();
|
|
43
|
-
},
|
|
44
|
-
get children () {
|
|
45
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__FormBase_js_90e50c3a__["default"], (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
46
|
-
ref: form,
|
|
47
|
-
get children () {
|
|
48
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"function" == typeof local.children)() ? local.children() : local.children;
|
|
49
|
-
}
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
const form_ValidatedForm = ValidatedForm;
|
|
55
|
-
export { form_ValidatedForm as default, useFormValidation };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type JSX, type Component } from "solid-js";
|
|
2
|
-
import type { IComponentBaseProps } from "../types";
|
|
3
|
-
export type MenuDetailsProps = JSX.DetailsHtmlAttributes<HTMLDetailsElement> & IComponentBaseProps & {
|
|
4
|
-
label: JSX.Element;
|
|
5
|
-
open?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const MenuDetails: Component<MenuDetailsProps>;
|
|
8
|
-
export default MenuDetails;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type JSX, type Component } from "solid-js";
|
|
2
|
-
import type { IComponentBaseProps } from "../types";
|
|
3
|
-
export type MenuDropdownProps = JSX.HTMLAttributes<HTMLSpanElement> & IComponentBaseProps & {
|
|
4
|
-
label: JSX.Element;
|
|
5
|
-
open?: boolean;
|
|
6
|
-
class?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: JSX.CSSProperties;
|
|
9
|
-
children?: JSX.Element;
|
|
10
|
-
};
|
|
11
|
-
declare const MenuDropdown: Component<MenuDropdownProps>;
|
|
12
|
-
export default MenuDropdown;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
5
|
-
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul>");
|
|
6
|
-
const MenuDropdown_MenuDropdown = (props)=>{
|
|
7
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8
|
-
"label",
|
|
9
|
-
"open",
|
|
10
|
-
"class",
|
|
11
|
-
"className",
|
|
12
|
-
"style",
|
|
13
|
-
"children",
|
|
14
|
-
"dataTheme"
|
|
15
|
-
]);
|
|
16
|
-
const spanClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("menu-dropdown-toggle", local.class, local.className, (0, __WEBPACK_EXTERNAL_MODULE_clsx__.clsx)({
|
|
17
|
-
"menu-dropdown-show": local.open
|
|
18
|
-
})));
|
|
19
|
-
const ulClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_clsx__.clsx)("menu-dropdown", {
|
|
20
|
-
"menu-dropdown-show": local.open
|
|
21
|
-
}));
|
|
22
|
-
return [
|
|
23
|
-
(()=>{
|
|
24
|
-
var _el$ = _tmpl$();
|
|
25
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
26
|
-
get ["class"] () {
|
|
27
|
-
return spanClasses();
|
|
28
|
-
},
|
|
29
|
-
get style () {
|
|
30
|
-
return local.style;
|
|
31
|
-
},
|
|
32
|
-
get ["data-theme"] () {
|
|
33
|
-
return local.dataTheme;
|
|
34
|
-
}
|
|
35
|
-
}), false, true);
|
|
36
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.label);
|
|
37
|
-
return _el$;
|
|
38
|
-
})(),
|
|
39
|
-
(()=>{
|
|
40
|
-
var _el$2 = _tmpl$2();
|
|
41
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.children);
|
|
42
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, ulClasses()));
|
|
43
|
-
return _el$2;
|
|
44
|
-
})()
|
|
45
|
-
];
|
|
46
|
-
};
|
|
47
|
-
const MenuDropdown = MenuDropdown_MenuDropdown;
|
|
48
|
-
export { MenuDropdown as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type JSX, type Component } from "solid-js";
|
|
2
|
-
import type { IComponentBaseProps } from "../types";
|
|
3
|
-
export type MenuTitleProps = JSX.LiHTMLAttributes<HTMLLIElement> & IComponentBaseProps & {
|
|
4
|
-
class?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const MenuTitle: Component<MenuTitleProps>;
|
|
8
|
-
export default MenuTitle;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
4
|
-
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li>");
|
|
5
|
-
const MenuTitle = (props)=>{
|
|
6
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7
|
-
"class",
|
|
8
|
-
"className"
|
|
9
|
-
]);
|
|
10
|
-
const classes = ()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("menu-title", local.class, local.className);
|
|
11
|
-
return (()=>{
|
|
12
|
-
var _el$ = _tmpl$();
|
|
13
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
14
|
-
get ["class"] () {
|
|
15
|
-
return classes();
|
|
16
|
-
}
|
|
17
|
-
}), false, false);
|
|
18
|
-
return _el$;
|
|
19
|
-
})();
|
|
20
|
-
};
|
|
21
|
-
const menu_MenuTitle = MenuTitle;
|
|
22
|
-
export { menu_MenuTitle as default };
|
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.menu {
|
|
3
|
-
display: flex;
|
|
4
|
-
width: fit-content;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
flex-wrap: wrap;
|
|
7
|
-
padding: calc(0.25rem * 2);
|
|
8
|
-
--menu-active-fg: var(--color-neutral-content);
|
|
9
|
-
--menu-active-bg: var(--color-neutral);
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.menu :where(li ul) {
|
|
14
|
-
position: relative;
|
|
15
|
-
margin-inline-start: calc(0.25rem * 4);
|
|
16
|
-
padding-inline-start: calc(0.25rem * 2);
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.menu :where(li ul):before {
|
|
21
|
-
position: absolute;
|
|
22
|
-
inset-inline-start: calc(0.25rem * 0);
|
|
23
|
-
top: calc(0.25rem * 3);
|
|
24
|
-
bottom: calc(0.25rem * 3);
|
|
25
|
-
background-color: var(--color-base-content);
|
|
26
|
-
opacity: 10%;
|
|
27
|
-
width: var(--border);
|
|
28
|
-
content: "";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.menu :where(li > .menu-dropdown:not(.menu-dropdown-show)) {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.menu :where(li:not(.menu-title) > *:not(ul, details, .menu-title, .btn)),
|
|
36
|
-
.menu :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
37
|
-
display: grid;
|
|
38
|
-
grid-auto-flow: column;
|
|
39
|
-
align-content: flex-start;
|
|
40
|
-
align-items: center;
|
|
41
|
-
gap: calc(0.25rem * 2);
|
|
42
|
-
border-radius: var(--radius-field);
|
|
43
|
-
padding-inline: calc(0.25rem * 3);
|
|
44
|
-
padding-block: calc(0.25rem * 1.5);
|
|
45
|
-
text-align: start;
|
|
46
|
-
transition-property: color, background-color, box-shadow;
|
|
47
|
-
transition-duration: 0.2s;
|
|
48
|
-
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
49
|
-
grid-auto-columns: minmax(auto, max-content) auto max-content;
|
|
50
|
-
text-wrap: balance;
|
|
51
|
-
user-select: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.menu :where(li > details > summary) {
|
|
55
|
-
--tw-outline-style: none;
|
|
56
|
-
outline-style: none;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@media (forced-colors: active) {
|
|
60
|
-
.menu :where(li > details > summary) {
|
|
61
|
-
outline: 2px solid transparent;
|
|
62
|
-
outline-offset: 2px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.menu :where(li > details > summary)::-webkit-details-marker {
|
|
67
|
-
display: none;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.menu :where(li > details > summary):after,
|
|
71
|
-
.menu :where(li > .menu-dropdown-toggle):after {
|
|
72
|
-
justify-self: flex-end;
|
|
73
|
-
display: block;
|
|
74
|
-
height: 0.375rem;
|
|
75
|
-
width: 0.375rem;
|
|
76
|
-
rotate: -135deg;
|
|
77
|
-
translate: 0 -1px;
|
|
78
|
-
transition-property: rotate, translate;
|
|
79
|
-
transition-duration: 0.2s;
|
|
80
|
-
content: "";
|
|
81
|
-
transform-origin: 50% 50%;
|
|
82
|
-
box-shadow: 2px 2px inset;
|
|
83
|
-
pointer-events: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.menu details {
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
interpolate-size: allow-keywords;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.menu details::details-content {
|
|
92
|
-
block-size: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
96
|
-
.menu details::details-content {
|
|
97
|
-
transition-behavior: allow-discrete;
|
|
98
|
-
transition-property: block-size, content-visibility;
|
|
99
|
-
transition-duration: 0.2s;
|
|
100
|
-
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.menu details[open]::details-content {
|
|
105
|
-
block-size: auto;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.menu :where(li > details[open] > summary):after,
|
|
109
|
-
.menu :where(li > .menu-dropdown-toggle.menu-dropdown-show):after {
|
|
110
|
-
rotate: 45deg;
|
|
111
|
-
translate: 0 1px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn).menu-focus,
|
|
115
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn):focus-visible {
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
background-color: var(--color-base-content);
|
|
118
|
-
color: var(--color-base-content);
|
|
119
|
-
--tw-outline-style: none;
|
|
120
|
-
outline-style: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
124
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn).menu-focus,
|
|
125
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn):focus-visible {
|
|
126
|
-
background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@media (forced-colors: active) {
|
|
131
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn).menu-focus,
|
|
132
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn):focus-visible {
|
|
133
|
-
outline: 2px solid transparent;
|
|
134
|
-
outline-offset: 2px;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover, li:not(.menu-title, .disabled) > details > summary:not(.menu-title):not(.menu-active, :active, .btn):hover ) {
|
|
139
|
-
cursor: pointer;
|
|
140
|
-
background-color: var(--color-base-content);
|
|
141
|
-
--tw-outline-style: none;
|
|
142
|
-
outline-style: none;
|
|
143
|
-
box-shadow: 0 1px oklch(0% 0 0 / 0.01) inset, 0 -1px oklch(100% 0 0 / 0.01) inset;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
147
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover, li:not(.menu-title, .disabled) > details > summary:not(.menu-title):not(.menu-active, :active, .btn):hover ) {
|
|
148
|
-
background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@media (forced-colors: active) {
|
|
153
|
-
.menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover, li:not(.menu-title, .disabled) > details > summary:not(.menu-title):not(.menu-active, :active, .btn):hover ) {
|
|
154
|
-
outline: 2px solid transparent;
|
|
155
|
-
outline-offset: 2px;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.menu :where(li:empty) {
|
|
160
|
-
background-color: var(--color-base-content);
|
|
161
|
-
opacity: 10%;
|
|
162
|
-
margin: 0.5rem 1rem;
|
|
163
|
-
height: 1px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.menu :where(li) {
|
|
167
|
-
position: relative;
|
|
168
|
-
display: flex;
|
|
169
|
-
flex-shrink: 0;
|
|
170
|
-
flex-direction: column;
|
|
171
|
-
flex-wrap: wrap;
|
|
172
|
-
align-items: stretch;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.menu :where(li) .badge {
|
|
176
|
-
justify-self: flex-end;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.menu :where(li) > *:not(ul, .menu-title, details, .btn):active,
|
|
180
|
-
.menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active,
|
|
181
|
-
.menu :where(li) > details > summary:active {
|
|
182
|
-
--tw-outline-style: none;
|
|
183
|
-
outline-style: none;
|
|
184
|
-
color: var(--menu-active-fg);
|
|
185
|
-
background-color: var(--menu-active-bg);
|
|
186
|
-
background-size: auto, calc(var(--noise) * 100%);
|
|
187
|
-
background-image: none, var(--fx-noise);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@media (forced-colors: active) {
|
|
191
|
-
.menu :where(li) > *:not(ul, .menu-title, details, .btn):active,
|
|
192
|
-
.menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active,
|
|
193
|
-
.menu :where(li) > details > summary:active {
|
|
194
|
-
outline: 2px solid transparent;
|
|
195
|
-
outline-offset: 2px;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.menu :where(li) > *:not(ul, .menu-title, details, .btn):active:not(.menu :where(li) > *:not(ul, .menu-title, details, .btn):active:active),
|
|
200
|
-
.menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active:not(.menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active:active),
|
|
201
|
-
.menu :where(li) > details > summary:active:not(.menu :where(li) > details > summary:active:active) {
|
|
202
|
-
box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--menu-active-bg);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.menu :where(li).menu-disabled {
|
|
206
|
-
pointer-events: none;
|
|
207
|
-
color: var(--color-base-content);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
211
|
-
.menu :where(li).menu-disabled {
|
|
212
|
-
color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.menu .dropdown:focus-within .menu-dropdown-toggle:after {
|
|
217
|
-
rotate: 45deg;
|
|
218
|
-
translate: 0 1px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.menu .dropdown-content {
|
|
222
|
-
margin-top: calc(0.25rem * 2);
|
|
223
|
-
padding: calc(0.25rem * 2);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.menu .dropdown-content:before {
|
|
227
|
-
display: none;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.menu-horizontal {
|
|
231
|
-
display: inline-flex;
|
|
232
|
-
flex-direction: row;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.menu-horizontal > li:not(.menu-title) > details > ul {
|
|
236
|
-
position: absolute;
|
|
237
|
-
margin-inline-start: calc(0.25rem * 0);
|
|
238
|
-
margin-top: calc(0.25rem * 4);
|
|
239
|
-
transform-origin: top;
|
|
240
|
-
border-radius: var(--radius-box);
|
|
241
|
-
background-color: var(--color-base-100);
|
|
242
|
-
padding-block: calc(0.25rem * 2);
|
|
243
|
-
padding-inline-end: calc(0.25rem * 2);
|
|
244
|
-
opacity: 0%;
|
|
245
|
-
scale: 95%;
|
|
246
|
-
box-shadow: 0 1px 3px 0 oklch(0% 0 0/0.1), 0 1px 2px -1px oklch(0% 0 0/0.1);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
250
|
-
@starting-style {
|
|
251
|
-
.menu-horizontal > li:not(.menu-title) > details > ul {
|
|
252
|
-
scale: 95%;
|
|
253
|
-
opacity: 0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.menu-horizontal > li:not(.menu-title) > details[open] > ul {
|
|
259
|
-
opacity: 100%;
|
|
260
|
-
scale: 100%;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.menu-horizontal > li > details > ul:before {
|
|
264
|
-
--tw-content: none;
|
|
265
|
-
content: var(--tw-content);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.menu-vertical {
|
|
269
|
-
display: inline-flex;
|
|
270
|
-
flex-direction: column;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.menu-vertical > li:not(.menu-title) > details > ul {
|
|
274
|
-
position: relative;
|
|
275
|
-
margin-inline-start: calc(0.25rem * 4);
|
|
276
|
-
margin-top: calc(0.25rem * 0);
|
|
277
|
-
padding-block: calc(0.25rem * 0);
|
|
278
|
-
padding-inline-end: calc(0.25rem * 0);
|
|
279
|
-
background-color: revert-layer;
|
|
280
|
-
border-radius: revert-layer;
|
|
281
|
-
animation: revert-layer;
|
|
282
|
-
transition: revert-layer;
|
|
283
|
-
box-shadow: revert-layer;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.menu-lg :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
287
|
-
.menu-lg :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
288
|
-
border-radius: var(--radius-field);
|
|
289
|
-
padding-inline: calc(0.25rem * 4);
|
|
290
|
-
padding-block: calc(0.25rem * 1.5);
|
|
291
|
-
font-size: 1.125rem;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.menu-lg .menu-title {
|
|
295
|
-
padding-inline: calc(0.25rem * 6);
|
|
296
|
-
padding-block: calc(0.25rem * 3);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.menu-md :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
300
|
-
.menu-md :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
301
|
-
border-radius: var(--radius-field);
|
|
302
|
-
padding-inline: calc(0.25rem * 3);
|
|
303
|
-
padding-block: calc(0.25rem * 1.5);
|
|
304
|
-
font-size: 0.875rem;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.menu-md .menu-title {
|
|
308
|
-
padding-inline: calc(0.25rem * 3);
|
|
309
|
-
padding-block: calc(0.25rem * 2);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.menu-sm :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
313
|
-
.menu-sm :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
314
|
-
border-radius: var(--radius-field);
|
|
315
|
-
padding-inline: calc(0.25rem * 2.5);
|
|
316
|
-
padding-block: calc(0.25rem * 1);
|
|
317
|
-
font-size: 0.75rem;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.menu-sm .menu-title {
|
|
321
|
-
padding-inline: calc(0.25rem * 3);
|
|
322
|
-
padding-block: calc(0.25rem * 2);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.menu-xl :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
326
|
-
.menu-xl :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
327
|
-
border-radius: var(--radius-field);
|
|
328
|
-
padding-inline: calc(0.25rem * 5);
|
|
329
|
-
padding-block: calc(0.25rem * 1.5);
|
|
330
|
-
font-size: 1.375rem;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.menu-xl .menu-title {
|
|
334
|
-
padding-inline: calc(0.25rem * 6);
|
|
335
|
-
padding-block: calc(0.25rem * 3);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.menu-xs :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
|
|
339
|
-
.menu-xs :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
|
|
340
|
-
border-radius: var(--radius-field);
|
|
341
|
-
padding-inline: calc(0.25rem * 2);
|
|
342
|
-
padding-block: calc(0.25rem * 1);
|
|
343
|
-
font-size: 0.6875rem;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.menu-xs .menu-title {
|
|
347
|
-
padding-inline: calc(0.25rem * 2);
|
|
348
|
-
padding-block: calc(0.25rem * 1);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.menu-title {
|
|
352
|
-
padding-inline: calc(0.25rem * 3);
|
|
353
|
-
padding-block: calc(0.25rem * 2);
|
|
354
|
-
color: var(--color-base-content);
|
|
355
|
-
font-size: 0.875rem;
|
|
356
|
-
font-weight: 600;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
360
|
-
.menu-title {
|
|
361
|
-
color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|