@pathscale/ui 1.2.7 → 1.2.9
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/_shared/index.js +1 -2
- package/dist/components/_shared/overlayPosition.js +1 -1
- package/dist/components/accordion/Accordion.js +2 -1
- package/dist/components/accordion/index.js +3 -2
- package/dist/components/alert/Alert.js +4 -3
- package/dist/components/alert/index.js +1 -2
- package/dist/components/auth-card/AuthCard.js +5 -5
- package/dist/components/auth-card/index.js +1 -2
- package/dist/components/auth-error-message/AuthErrorMessage.js +5 -5
- package/dist/components/auth-error-message/index.js +1 -2
- package/dist/components/auth-field-group/AuthFieldGroup.js +3 -3
- package/dist/components/auth-field-group/index.js +1 -2
- package/dist/components/auth-footer-links/AuthFooterLinks.js +1 -1
- package/dist/components/auth-footer-links/index.js +1 -2
- package/dist/components/auth-form/AuthForm.js +1 -1
- package/dist/components/auth-form/index.js +1 -2
- package/dist/components/auth-powered-by/AuthPoweredBy.js +3 -3
- package/dist/components/auth-powered-by/index.js +1 -2
- package/dist/components/auth-submit-button/AuthSubmitButton.js +3 -3
- package/dist/components/auth-submit-button/index.js +1 -2
- package/dist/components/auth-success-message/AuthSuccessMessage.js +5 -5
- package/dist/components/auth-success-message/index.js +1 -2
- package/dist/components/avatar/Avatar.js +2 -1
- package/dist/components/avatar/AvatarGroup.js +1 -1
- package/dist/components/avatar/index.js +1 -2
- package/dist/components/badge/index.js +2 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +2 -1
- package/dist/components/breadcrumbs/index.js +1 -2
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/index.js +1 -2
- package/dist/components/button-group/ButtonGroup.js +2 -1
- package/dist/components/button-group/index.js +3 -2
- package/dist/components/calendar/Calendar.js +3 -3
- package/dist/components/calendar/index.js +1 -2
- package/dist/components/card/Card.js +2 -1
- package/dist/components/card/index.js +3 -2
- package/dist/components/chatbubble/ChatBubble.js +11 -11
- package/dist/components/chatbubble/ChatBubbleAvatar.js +5 -5
- package/dist/components/chatbubble/ChatBubbleFooter.js +3 -3
- package/dist/components/chatbubble/ChatBubbleHeader.js +3 -3
- package/dist/components/chatbubble/ChatBubbleMessage.js +1 -1
- package/dist/components/chatbubble/ChatBubbleTime.js +3 -3
- package/dist/components/chatbubble/index.js +1 -2
- package/dist/components/checkbox/Checkbox.js +3 -3
- package/dist/components/checkbox/index.js +1 -2
- package/dist/components/checkbox-group/CheckboxGroup.js +3 -3
- package/dist/components/checkbox-group/index.js +4 -3
- package/dist/components/chip/index.js +2 -1
- package/dist/components/close-button/CloseButton.js +1 -1
- package/dist/components/close-button/index.js +1 -2
- package/dist/components/color-area/ColorArea.js +3 -3
- package/dist/components/color-area/index.js +3 -3
- package/dist/components/color-field/ColorField.js +3 -3
- package/dist/components/color-field/index.js +3 -3
- package/dist/components/color-picker/ColorPicker.js +11 -10
- package/dist/components/color-picker/index.js +3 -2
- package/dist/components/color-slider/ColorSlider.js +3 -3
- package/dist/components/color-slider/index.js +3 -3
- package/dist/components/color-swatch/ColorSwatch.js +3 -3
- package/dist/components/color-swatch/index.js +3 -3
- package/dist/components/color-swatch-picker/ColorSwatchPicker.js +2 -1
- package/dist/components/color-swatch-picker/index.js +1 -2
- package/dist/components/color-wheel-flower/ColorWheelFlower.js +11 -11
- package/dist/components/color-wheel-flower/index.js +2 -3
- package/dist/components/combo-box/ComboBox.js +2 -1
- package/dist/components/combo-box/index.js +3 -2
- package/dist/components/date-field/DateField.js +4 -3
- package/dist/components/date-field/index.js +3 -2
- package/dist/components/date-picker/DatePicker.js +5 -5
- package/dist/components/date-picker/index.js +1 -2
- package/dist/components/date-range-picker/DateRangePicker.js +5 -5
- package/dist/components/date-range-picker/index.js +1 -2
- package/dist/components/description/Description.js +2 -1
- package/dist/components/description/index.js +3 -2
- package/dist/components/disclosure/Disclosure.js +4 -3
- package/dist/components/disclosure/index.js +4 -3
- package/dist/components/disclosure-group/DisclosureGroup.js +2 -1
- package/dist/components/disclosure-group/index.js +5 -4
- package/dist/components/drawer/Drawer.js +2 -1
- package/dist/components/drawer/index.js +1 -2
- package/dist/components/dropdown/Dropdown.js +2 -1
- package/dist/components/dropdown/index.js +3 -2
- package/dist/components/empty-state/EmptyState.js +2 -1
- package/dist/components/empty-state/index.js +1 -2
- package/dist/components/error-message/ErrorMessage.js +2 -1
- package/dist/components/error-message/index.js +1 -2
- package/dist/components/field-error/FieldError.js +4 -3
- package/dist/components/field-error/index.js +1 -2
- package/dist/components/fieldset/Fieldset.js +2 -1
- package/dist/components/fieldset/index.js +3 -2
- package/dist/components/flex/Flex.js +3 -3
- package/dist/components/flex/index.js +1 -2
- package/dist/components/floating-dock/FloatingDock.js +2 -2
- package/dist/components/floating-dock/index.js +1 -2
- package/dist/components/footer/Footer.js +1 -1
- package/dist/components/footer/index.js +1 -2
- package/dist/components/form/FieldErrorMessage.js +2 -1
- package/dist/components/form/Form.js +6 -5
- package/dist/components/form/FormField.js +6 -5
- package/dist/components/form/FormSubmitButton.js +4 -3
- package/dist/components/form/index.js +6 -5
- package/dist/components/glass-panel/GlassPanel.js +3 -3
- package/dist/components/glass-panel/index.js +1 -2
- package/dist/components/glow-card/GlowCard.js +1 -1
- package/dist/components/glow-card/index.js +1 -2
- package/dist/components/grid/Grid.js +3 -3
- package/dist/components/grid/index.js +1 -2
- package/dist/components/header/Header.js +4 -3
- package/dist/components/header/index.js +3 -2
- package/dist/components/icon/Icon.js +1 -1
- package/dist/components/icon/index.js +1 -2
- package/dist/components/immersive-landing/ImmersiveLanding.js +9 -9
- package/dist/components/immersive-landing/ImmersiveLandingArrows.js +1 -1
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.js +3 -3
- package/dist/components/immersive-landing/ImmersiveLandingPage.js +1 -1
- package/dist/components/immersive-landing/components/CookieConsent.js +12 -12
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +14 -14
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +11 -11
- package/dist/components/immersive-landing/index.js +6 -7
- package/dist/components/immersive-landing/useImmersiveLanding.js +1 -1
- package/dist/components/input/Input.js +3 -3
- package/dist/components/input/index.js +3 -3
- package/dist/components/input-group/InputGroup.js +4 -3
- package/dist/components/input-group/index.js +3 -2
- package/dist/components/input-otp/InputOTP.js +4 -3
- package/dist/components/input-otp/index.js +1 -2
- package/dist/components/join/Join.js +1 -1
- package/dist/components/join/index.js +1 -2
- package/dist/components/kbd/Kbd.js +24 -23
- package/dist/components/kbd/index.js +1 -2
- package/dist/components/label/Label.js +2 -1
- package/dist/components/label/index.js +3 -2
- package/dist/components/language-switcher/LanguageSwitcher.js +10 -10
- package/dist/components/language-switcher/createI18n.js +2 -2
- package/dist/components/language-switcher/index.js +2 -3
- package/dist/components/link/Link.js +4 -3
- package/dist/components/link/index.js +1 -2
- package/dist/components/list-box/ListBox.js +2 -1
- package/dist/components/list-box/ListBoxItem.js +4 -3
- package/dist/components/list-box/ListBoxSection.js +2 -1
- package/dist/components/list-box/index.js +10 -9
- package/dist/components/live-chat/LiveChatBubble.js +3 -3
- package/dist/components/live-chat/LiveChatPanel.js +9 -9
- package/dist/components/live-chat/index.js +2 -3
- package/dist/components/menu/Menu.js +8 -7
- package/dist/components/menu/MenuItem.js +4 -3
- package/dist/components/menu/MenuSection.js +2 -1
- package/dist/components/menu/index.js +4 -3
- package/dist/components/meter/Meter.js +4 -3
- package/dist/components/meter/index.js +1 -2
- package/dist/components/modal/Modal.js +4 -3
- package/dist/components/modal/index.js +1 -2
- package/dist/components/navbar/Navbar.classes.d.ts +9 -0
- package/dist/components/navbar/Navbar.classes.js +9 -0
- package/dist/components/navbar/Navbar.js +11 -11
- package/dist/components/navbar/NavbarRow.js +1 -1
- package/dist/components/navbar/NavbarSection.js +1 -1
- package/dist/components/navbar/NavbarStack.js +1 -1
- package/dist/components/navbar/index.js +1 -2
- package/dist/components/noise-background/NoiseBackground.js +3 -3
- package/dist/components/noise-background/index.js +1 -2
- package/dist/components/number-field/NumberField.js +2 -1
- package/dist/components/number-field/index.js +1 -2
- package/dist/components/pagination/Pagination.js +4 -4
- package/dist/components/pagination/index.js +1 -2
- package/dist/components/password-field/PasswordField.js +9 -8
- package/dist/components/password-field/index.js +1 -2
- package/dist/components/password-requirements/PasswordRequirements.js +5 -5
- package/dist/components/password-requirements/index.js +1 -2
- package/dist/components/password-rules/index.js +1 -2
- package/dist/components/popover/Popover.js +2 -1
- package/dist/components/popover/index.js +4 -3
- package/dist/components/progress-bar/ProgressBar.js +1 -1
- package/dist/components/progress-bar/index.js +1 -2
- package/dist/components/progress-circle/ProgressCircle.js +3 -3
- package/dist/components/progress-circle/index.js +1 -2
- package/dist/components/radio/Radio.js +1 -1
- package/dist/components/radio/index.js +1 -2
- package/dist/components/radio-group/RadioGroup.js +3 -3
- package/dist/components/radio-group/index.js +4 -3
- package/dist/components/range-calendar/RangeCalendar.js +5 -5
- package/dist/components/range-calendar/index.js +1 -2
- package/dist/components/scroll-shadow/ScrollShadow.js +3 -3
- package/dist/components/scroll-shadow/index.js +1 -2
- package/dist/components/scroll-shadow/useScrollShadow.js +1 -1
- package/dist/components/search-field/SearchField.js +6 -5
- package/dist/components/search-field/index.js +1 -2
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/index.js +1 -2
- package/dist/components/separator/Separator.js +2 -1
- package/dist/components/separator/index.js +1 -2
- package/dist/components/size-picker/SizePicker.js +3 -3
- package/dist/components/size-picker/index.js +2 -3
- package/dist/components/size-picker/sizeStore.js +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/index.js +1 -2
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/index.js +1 -2
- package/dist/components/spinner/Spinner.js +3 -3
- package/dist/components/spinner/index.js +1 -2
- package/dist/components/surface/Surface.js +2 -1
- package/dist/components/surface/index.js +1 -2
- package/dist/components/table/ExpandToggle.js +4 -4
- package/dist/components/table/InlineConfirm.js +4 -4
- package/dist/components/table/MobileListView.js +3 -3
- package/dist/components/table/SortIcon.js +5 -5
- package/dist/components/table/Table.js +2 -1
- package/dist/components/table/VirtualSpacerRow.js +1 -1
- package/dist/components/table/index.js +7 -8
- package/dist/components/tabs/Tabs.js +3 -2
- package/dist/components/tabs/index.js +1 -2
- package/dist/components/tag/Tag.js +4 -3
- package/dist/components/tag/index.js +3 -2
- package/dist/components/tag-group/TagGroup.js +4 -3
- package/dist/components/tag-group/index.js +1 -2
- package/dist/components/text/Text.js +2 -1
- package/dist/components/text/index.js +1 -2
- package/dist/components/text-area/TextArea.js +4 -3
- package/dist/components/text-area/index.js +1 -2
- package/dist/components/text-field/TextField.js +4 -3
- package/dist/components/text-field/index.js +3 -2
- package/dist/components/textarea/Textarea.js +4 -3
- package/dist/components/textarea/index.js +1 -2
- package/dist/components/theme-color-picker/ThemeColorPicker.js +7 -7
- package/dist/components/theme-color-picker/hueShift.js +5 -5
- package/dist/components/theme-color-picker/index.js +2 -3
- package/dist/components/time-field/TimeField.js +2 -1
- package/dist/components/time-field/index.js +3 -2
- package/dist/components/toast/Toast.js +7 -6
- package/dist/components/toast/index.js +1 -2
- package/dist/components/toggle/Toggle.js +1 -1
- package/dist/components/toggle/index.js +1 -2
- package/dist/components/toolbar/Toolbar.js +2 -1
- package/dist/components/toolbar/index.js +1 -2
- package/dist/components/tooltip/Tooltip.js +4 -3
- package/dist/components/tooltip/index.js +1 -2
- package/dist/components/utils.js +2 -2
- package/dist/components/video-preview/VideoPreview.js +4 -3
- package/dist/components/video-preview/index.js +1 -2
- package/dist/hooks/form/index.js +4 -5
- package/dist/hooks/layout/index.js +1 -2
- package/dist/hooks/table/index.js +8 -9
- package/dist/hooks/table/useAnchoredOverlayPosition.js +1 -1
- package/dist/index.js +108 -108
- package/dist/lib/refs/index.js +1 -2
- package/dist/lib/style/index.js +1 -2
- package/dist/lib/tag/index.js +2 -3
- package/dist/motion/index.js +10 -11
- package/dist/motion/solid/AnimatedCollapse.js +5 -4
- package/dist/motion/solid/MotionDiv.js +4 -3
- package/dist/motion/solid/Presence.js +4 -3
- package/dist/motion/solid/index.js +3 -4
- package/dist/primitives/streaming/index.js +2 -3
- package/dist/primitives/virtualizer/index.js +1 -2
- package/dist/purge-manifest.json +329 -29
- package/package.json +7 -7
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_Pagination_js_default as default };
|
|
1
|
+
export { default } from "./Pagination.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
2
|
import { createSignal, splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import button_0 from "../button/index.js";
|
|
5
|
+
import icon from "../icon/index.js";
|
|
6
|
+
import input from "../input/index.js";
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
8
8
|
const createPasswordFieldInputContract = (params)=>({
|
|
9
9
|
id: params.id,
|
|
@@ -78,7 +78,7 @@ const PasswordField = (props)=>{
|
|
|
78
78
|
const [isVisible, setIsVisible] = createSignal(false);
|
|
79
79
|
let fieldRef;
|
|
80
80
|
const toggleLabel = ()=>isVisible() ? local.hideLabel : local.showLabel;
|
|
81
|
-
const toggleIcon = ()=>selectPasswordToggleIcon(isVisible(), local.visibleIcon, local.hiddenIcon, createComponent(
|
|
81
|
+
const toggleIcon = ()=>selectPasswordToggleIcon(isVisible(), local.visibleIcon, local.hiddenIcon, createComponent(icon, {
|
|
82
82
|
width: 16,
|
|
83
83
|
height: 16,
|
|
84
84
|
get name () {
|
|
@@ -91,7 +91,7 @@ const PasswordField = (props)=>{
|
|
|
91
91
|
local.inputRef?.(el);
|
|
92
92
|
};
|
|
93
93
|
const toggleVisibility = ()=>{
|
|
94
|
-
const snapshot = capturePasswordToggleSnapshot(fieldRef, "
|
|
94
|
+
const snapshot = capturePasswordToggleSnapshot(fieldRef, "u" > typeof document ? document.activeElement : null);
|
|
95
95
|
const nextVisible = !isVisible();
|
|
96
96
|
setIsVisible(nextVisible);
|
|
97
97
|
local.onVisibilityChange?.(nextVisible);
|
|
@@ -112,7 +112,7 @@ const PasswordField = (props)=>{
|
|
|
112
112
|
return isVisible() ? "true" : "false";
|
|
113
113
|
}
|
|
114
114
|
}), false, true);
|
|
115
|
-
insert(_el$, createComponent(
|
|
115
|
+
insert(_el$, createComponent(input, mergeProps(()=>createPasswordFieldInputContract({
|
|
116
116
|
id: local.id,
|
|
117
117
|
name: local.name,
|
|
118
118
|
label: local.label,
|
|
@@ -134,7 +134,7 @@ const PasswordField = (props)=>{
|
|
|
134
134
|
},
|
|
135
135
|
onBlur: ()=>local.onBlur?.(),
|
|
136
136
|
get endIcon () {
|
|
137
|
-
return createComponent(
|
|
137
|
+
return createComponent(button_0, {
|
|
138
138
|
type: "button",
|
|
139
139
|
variant: "ghost",
|
|
140
140
|
size: "sm",
|
|
@@ -164,4 +164,5 @@ const PasswordField = (props)=>{
|
|
|
164
164
|
})();
|
|
165
165
|
};
|
|
166
166
|
const password_field_PasswordField = PasswordField;
|
|
167
|
-
export
|
|
167
|
+
export default password_field_PasswordField;
|
|
168
|
+
export { capturePasswordToggleSnapshot, createPasswordFieldInputContract, getPasswordInputType, preventPasswordTogglePointerDown, restorePasswordFieldAfterToggle, selectPasswordToggleIcon };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_PasswordField_js_default as PasswordField };
|
|
1
|
+
export { default as PasswordField } from "./PasswordField.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { className, createComponent, effect, insert, memo, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
2
2
|
import { For, Show, splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import
|
|
4
|
+
import icon from "../icon/index.js";
|
|
5
5
|
var _tmpl$ = /*#__PURE__*/ template('<p class="text-xs font-medium uppercase opacity-70">'), _tmpl$2 = /*#__PURE__*/ template("<div><ul class=space-y-1>"), _tmpl$3 = /*#__PURE__*/ template('<li><span class="inline-flex shrink-0 items-center justify-center"aria-hidden=true></span><span>');
|
|
6
|
-
const
|
|
6
|
+
const PasswordRequirements = (props)=>{
|
|
7
7
|
const [local, others] = splitProps(props, [
|
|
8
8
|
"title",
|
|
9
9
|
"results",
|
|
@@ -45,7 +45,7 @@ const PasswordRequirements_PasswordRequirements = (props)=>{
|
|
|
45
45
|
return memo(()=>!!rule.passed)() ? local.metIcon : local.unmetIcon;
|
|
46
46
|
},
|
|
47
47
|
get fallback () {
|
|
48
|
-
return createComponent(
|
|
48
|
+
return createComponent(icon, {
|
|
49
49
|
width: 14,
|
|
50
50
|
height: 14,
|
|
51
51
|
get name () {
|
|
@@ -75,5 +75,5 @@ const PasswordRequirements_PasswordRequirements = (props)=>{
|
|
|
75
75
|
return _el$;
|
|
76
76
|
})();
|
|
77
77
|
};
|
|
78
|
-
const
|
|
79
|
-
export
|
|
78
|
+
const password_requirements_PasswordRequirements = PasswordRequirements;
|
|
79
|
+
export default password_requirements_PasswordRequirements;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_PasswordRequirements_js_default as PasswordRequirements };
|
|
1
|
+
export { default as PasswordRequirements } from "./PasswordRequirements.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { evaluatePasswordRules, matchPasswordConfirmation };
|
|
1
|
+
export { evaluatePasswordRules, matchPasswordConfirmation } from "../../passwordRules.js";
|
|
@@ -340,4 +340,5 @@ const Popover = Object.assign(PopoverRoot, {
|
|
|
340
340
|
Heading: PopoverHeading
|
|
341
341
|
});
|
|
342
342
|
const popover_Popover = Popover;
|
|
343
|
-
export
|
|
343
|
+
export default popover_Popover;
|
|
344
|
+
export { PopoverArrow, PopoverContent, PopoverDialog, PopoverHeading, PopoverRoot, PopoverTrigger };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const popover =
|
|
3
|
-
export
|
|
1
|
+
import Popover, { PopoverArrow, PopoverContent, PopoverDialog, PopoverHeading, PopoverRoot, PopoverTrigger } from "./Popover.js";
|
|
2
|
+
const popover = Popover;
|
|
3
|
+
export default popover;
|
|
4
|
+
export { PopoverArrow, PopoverContent, PopoverDialog, PopoverHeading, PopoverRoot, PopoverTrigger };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_ProgressBar_js_default as default };
|
|
1
|
+
export { default } from "./ProgressBar.js";
|
|
@@ -8,7 +8,7 @@ const STROKE_WIDTH = 4;
|
|
|
8
8
|
const CENTER = 18;
|
|
9
9
|
const RADIUS = CENTER - STROKE_WIDTH / 2;
|
|
10
10
|
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
11
|
-
const
|
|
11
|
+
const ProgressCircle = (props)=>{
|
|
12
12
|
const [local, others] = splitProps(props, [
|
|
13
13
|
"value",
|
|
14
14
|
"minValue",
|
|
@@ -105,5 +105,5 @@ const ProgressCircle_ProgressCircle = (props)=>{
|
|
|
105
105
|
return _el$;
|
|
106
106
|
})();
|
|
107
107
|
};
|
|
108
|
-
const
|
|
109
|
-
export
|
|
108
|
+
const progress_circle_ProgressCircle = ProgressCircle;
|
|
109
|
+
export default progress_circle_ProgressCircle;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_ProgressCircle_js_default as default };
|
|
1
|
+
export { default } from "./ProgressCircle.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_Radio_js_default as default };
|
|
1
|
+
export { default } from "./Radio.js";
|
|
@@ -5,7 +5,7 @@ import { twMerge } from "tailwind-merge";
|
|
|
5
5
|
import { RadioGroupContext } from "./context.js";
|
|
6
6
|
import { CLASSES } from "./RadioGroup.classes.js";
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template("<span>"), _tmpl$2 = /*#__PURE__*/ template("<div><div>");
|
|
8
|
-
const
|
|
8
|
+
const RadioGroup = (props)=>{
|
|
9
9
|
const [local, others] = splitProps(props, [
|
|
10
10
|
"children",
|
|
11
11
|
"class",
|
|
@@ -155,5 +155,5 @@ const RadioGroup_RadioGroup = (props)=>{
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
|
-
const
|
|
159
|
-
export
|
|
158
|
+
const radio_group_RadioGroup = RadioGroup;
|
|
159
|
+
export default radio_group_RadioGroup;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const radio_group =
|
|
3
|
-
export
|
|
1
|
+
import RadioGroup from "./RadioGroup.js";
|
|
2
|
+
const radio_group = RadioGroup;
|
|
3
|
+
export default radio_group;
|
|
4
|
+
export { RadioGroup };
|
|
@@ -3,10 +3,10 @@ import "./RangeCalendar.css";
|
|
|
3
3
|
import { createMemo, splitProps } from "solid-js";
|
|
4
4
|
import { twMerge } from "tailwind-merge";
|
|
5
5
|
import { useRangeSelection } from "../../hooks/date/index.js";
|
|
6
|
-
import
|
|
6
|
+
import calendar from "../calendar/index.js";
|
|
7
7
|
import { CLASSES } from "./RangeCalendar.classes.js";
|
|
8
8
|
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
9
|
-
const
|
|
9
|
+
const RangeCalendar = (props)=>{
|
|
10
10
|
const [local, others] = splitProps(props, [
|
|
11
11
|
"class",
|
|
12
12
|
"className",
|
|
@@ -63,7 +63,7 @@ const RangeCalendar_RangeCalendar = (props)=>{
|
|
|
63
63
|
}, ()=>({
|
|
64
64
|
class: twMerge(CLASSES.Root.base, isDisabled() && CLASSES.Root.flag.disabled, local.class, local.className)
|
|
65
65
|
})), false, true);
|
|
66
|
-
insert(_el$, createComponent(
|
|
66
|
+
insert(_el$, createComponent(calendar, mergeProps(()=>({
|
|
67
67
|
class: CLASSES.Calendar.base
|
|
68
68
|
}), {
|
|
69
69
|
selectionMode: "range",
|
|
@@ -106,5 +106,5 @@ const RangeCalendar_RangeCalendar = (props)=>{
|
|
|
106
106
|
return _el$;
|
|
107
107
|
})();
|
|
108
108
|
};
|
|
109
|
-
const
|
|
110
|
-
export
|
|
109
|
+
const range_calendar_RangeCalendar = RangeCalendar;
|
|
110
|
+
export default range_calendar_RangeCalendar;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_RangeCalendar_js_default as default };
|
|
1
|
+
export { default } from "./RangeCalendar.js";
|
|
@@ -5,7 +5,7 @@ import { twMerge } from "tailwind-merge";
|
|
|
5
5
|
import { CLASSES } from "./ScrollShadow.classes.js";
|
|
6
6
|
import { applyControlledScrollShadowVisibility, clearScrollShadowDataAttributes, useScrollShadow } from "./useScrollShadow.js";
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
8
|
-
const
|
|
8
|
+
const ScrollShadow = (props)=>{
|
|
9
9
|
const [local, others] = splitProps(props, [
|
|
10
10
|
"children",
|
|
11
11
|
"class",
|
|
@@ -83,5 +83,5 @@ const ScrollShadow_ScrollShadow = (props)=>{
|
|
|
83
83
|
return _el$;
|
|
84
84
|
})();
|
|
85
85
|
};
|
|
86
|
-
const
|
|
87
|
-
export
|
|
86
|
+
const scroll_shadow_ScrollShadow = ScrollShadow;
|
|
87
|
+
export default scroll_shadow_ScrollShadow;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_ScrollShadow_js_default as default };
|
|
1
|
+
export { default } from "./ScrollShadow.js";
|
|
@@ -84,7 +84,7 @@ const useScrollShadow = (props)=>{
|
|
|
84
84
|
el.addEventListener("scroll", checkOverflow, {
|
|
85
85
|
passive: true
|
|
86
86
|
});
|
|
87
|
-
const resizeObserver = "
|
|
87
|
+
const resizeObserver = "u" > typeof ResizeObserver ? new ResizeObserver(()=>checkOverflow()) : void 0;
|
|
88
88
|
resizeObserver?.observe(el);
|
|
89
89
|
onCleanup(()=>{
|
|
90
90
|
el.removeEventListener("scroll", checkOverflow);
|
|
@@ -2,7 +2,7 @@ import { createComponent, insert, memo, mergeProps, spread, template } from "sol
|
|
|
2
2
|
import "./SearchField.css";
|
|
3
3
|
import { Show, createContext, createSignal, splitProps, useContext } from "solid-js";
|
|
4
4
|
import { twMerge } from "tailwind-merge";
|
|
5
|
-
import
|
|
5
|
+
import close_button from "../close-button/index.js";
|
|
6
6
|
import { CLASSES } from "./SearchField.classes.js";
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<input>"), _tmpl$3 = /*#__PURE__*/ template("<span>");
|
|
8
8
|
const SearchFieldContext = createContext();
|
|
@@ -265,7 +265,7 @@ const SearchFieldClearButton = (props)=>{
|
|
|
265
265
|
if (event.defaultPrevented) return;
|
|
266
266
|
context?.clearValue();
|
|
267
267
|
};
|
|
268
|
-
return createComponent(
|
|
268
|
+
return createComponent(close_button, mergeProps(others, ()=>({
|
|
269
269
|
class: twMerge(CLASSES.ClearButton.base, local.class, local.className)
|
|
270
270
|
}), {
|
|
271
271
|
"data-slot": "search-field-clear-button",
|
|
@@ -285,12 +285,13 @@ const SearchFieldClearButton = (props)=>{
|
|
|
285
285
|
onClick: handleClick
|
|
286
286
|
}));
|
|
287
287
|
};
|
|
288
|
-
const
|
|
288
|
+
const SearchField = Object.assign(SearchFieldRoot, {
|
|
289
289
|
Root: SearchFieldRoot,
|
|
290
290
|
Group: SearchFieldGroup,
|
|
291
291
|
Input: SearchFieldInput,
|
|
292
292
|
SearchIcon: SearchFieldSearchIcon,
|
|
293
293
|
ClearButton: SearchFieldClearButton
|
|
294
294
|
});
|
|
295
|
-
const
|
|
296
|
-
export
|
|
295
|
+
const search_field_SearchField = SearchField;
|
|
296
|
+
export default search_field_SearchField;
|
|
297
|
+
export { SearchField, SearchFieldClearButton, SearchFieldGroup, SearchFieldInput, SearchFieldRoot, SearchFieldSearchIcon };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { SearchField, SearchFieldClearButton, SearchFieldGroup, SearchFieldInput, SearchFieldRoot, SearchFieldSearchIcon, external_SearchField_js_default as default };
|
|
1
|
+
export { SearchField, SearchFieldClearButton, SearchFieldGroup, SearchFieldInput, SearchFieldRoot, SearchFieldSearchIcon, default } from "./SearchField.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_Select_js_default as default };
|
|
1
|
+
export { default } from "./Select.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Separator, external_Separator_js_default as default };
|
|
1
|
+
export { Separator, default } from "./Separator.js";
|
|
@@ -2,7 +2,7 @@ import { createComponent, insert, mergeProps, spread, template } from "solid-js/
|
|
|
2
2
|
import { For, createMemo, splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import
|
|
5
|
+
import button_0 from "../button/index.js";
|
|
6
6
|
import { createSizeStore } from "./sizeStore.js";
|
|
7
7
|
import { CLASSES } from "./SizePicker.classes.js";
|
|
8
8
|
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
@@ -42,7 +42,7 @@ const SizePicker = (props)=>{
|
|
|
42
42
|
}, others), false, true);
|
|
43
43
|
insert(_el$, createComponent(For, {
|
|
44
44
|
each: PRESETS,
|
|
45
|
-
children: (preset)=>createComponent(
|
|
45
|
+
children: (preset)=>createComponent(button_0, {
|
|
46
46
|
type: "button",
|
|
47
47
|
size: "sm",
|
|
48
48
|
get variant () {
|
|
@@ -61,4 +61,4 @@ const SizePicker = (props)=>{
|
|
|
61
61
|
})();
|
|
62
62
|
};
|
|
63
63
|
const size_picker_SizePicker = SizePicker;
|
|
64
|
-
export
|
|
64
|
+
export default size_picker_SizePicker;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { external_SizePicker_js_default as SizePicker, createSizeStore, getDefaultSizeStore };
|
|
1
|
+
export { default as SizePicker } from "./SizePicker.js";
|
|
2
|
+
export { createSizeStore, getDefaultSizeStore } from "./sizeStore.js";
|
|
@@ -10,7 +10,7 @@ function applySize(preset) {
|
|
|
10
10
|
function createSizeStore(storagePrefix) {
|
|
11
11
|
const STORAGE_KEY = `${storagePrefix}_size_preset`;
|
|
12
12
|
const getInitial = ()=>{
|
|
13
|
-
if ("
|
|
13
|
+
if ("u" < typeof window) return "M";
|
|
14
14
|
const saved = localStorage.getItem(STORAGE_KEY);
|
|
15
15
|
if (saved && saved in SIZE_SCALE) return saved;
|
|
16
16
|
return "M";
|
|
@@ -18,7 +18,7 @@ function createSizeStore(storagePrefix) {
|
|
|
18
18
|
const [size, setSizeInternal] = createSignal(getInitial());
|
|
19
19
|
createEffect(()=>{
|
|
20
20
|
const s = size();
|
|
21
|
-
if ("
|
|
21
|
+
if ("u" < typeof window) return;
|
|
22
22
|
localStorage.setItem(STORAGE_KEY, s);
|
|
23
23
|
applySize(s);
|
|
24
24
|
});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_Skeleton_js_default as default };
|
|
1
|
+
export { default } from "./Skeleton.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_Slider_js_default as default };
|
|
1
|
+
export { default } from "./Slider.js";
|
|
@@ -15,7 +15,7 @@ const SpinnerSVG = ()=>{
|
|
|
15
15
|
return _el$;
|
|
16
16
|
})();
|
|
17
17
|
};
|
|
18
|
-
const
|
|
18
|
+
const Spinner = (props)=>{
|
|
19
19
|
const [local, others] = splitProps(props, [
|
|
20
20
|
"size",
|
|
21
21
|
"color",
|
|
@@ -56,5 +56,5 @@ const Spinner_Spinner = (props)=>{
|
|
|
56
56
|
return _el$8;
|
|
57
57
|
})();
|
|
58
58
|
};
|
|
59
|
-
const
|
|
60
|
-
export
|
|
59
|
+
const spinner_Spinner = Spinner;
|
|
60
|
+
export default spinner_Spinner;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { external_Spinner_js_default as Loading, external_Spinner_js_default as Spinner, external_Spinner_js_default as default };
|
|
1
|
+
export { default as Loading, default as Spinner, default } from "./Spinner.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Surface, external_Surface_js_default as default };
|
|
1
|
+
export { Surface, default } from "./Surface.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
2
|
import { Show, splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import
|
|
4
|
+
import icon from "../icon/index.js";
|
|
5
5
|
var _tmpl$ = /*#__PURE__*/ template("<button>");
|
|
6
6
|
const ExpandToggle = (props)=>{
|
|
7
7
|
const [local, rest] = splitProps(props, [
|
|
@@ -57,7 +57,7 @@ const ExpandToggle = (props)=>{
|
|
|
57
57
|
return local.expanded;
|
|
58
58
|
},
|
|
59
59
|
get fallback () {
|
|
60
|
-
return createComponent(
|
|
60
|
+
return createComponent(icon, {
|
|
61
61
|
name: "icon-[lucide--chevron-right]",
|
|
62
62
|
get width () {
|
|
63
63
|
return iconSize();
|
|
@@ -69,7 +69,7 @@ const ExpandToggle = (props)=>{
|
|
|
69
69
|
});
|
|
70
70
|
},
|
|
71
71
|
get children () {
|
|
72
|
-
return createComponent(
|
|
72
|
+
return createComponent(icon, {
|
|
73
73
|
name: "icon-[lucide--chevron-down]",
|
|
74
74
|
get width () {
|
|
75
75
|
return iconSize();
|
|
@@ -85,4 +85,4 @@ const ExpandToggle = (props)=>{
|
|
|
85
85
|
})();
|
|
86
86
|
};
|
|
87
87
|
const table_ExpandToggle = ExpandToggle;
|
|
88
|
-
export
|
|
88
|
+
export default table_ExpandToggle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
2
|
import { splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import
|
|
4
|
+
import button_0 from "../button/index.js";
|
|
5
5
|
var _tmpl$ = /*#__PURE__*/ template('<div><span class="text-sm text-base-content/70"data-slot=table-inline-confirm-prompt></span><div class="inline-flex items-center gap-2"data-slot=table-inline-confirm-actions>');
|
|
6
6
|
const toButtonVariant = (variant)=>{
|
|
7
7
|
if ("danger" === variant) return "danger";
|
|
@@ -36,7 +36,7 @@ const InlineConfirm = (props)=>{
|
|
|
36
36
|
"data-slot": "table-inline-confirm"
|
|
37
37
|
}), false, true);
|
|
38
38
|
insert(_el$2, ()=>local.prompt);
|
|
39
|
-
insert(_el$3, createComponent(
|
|
39
|
+
insert(_el$3, createComponent(button_0, {
|
|
40
40
|
size: "sm",
|
|
41
41
|
get variant () {
|
|
42
42
|
return confirmVariant();
|
|
@@ -57,7 +57,7 @@ const InlineConfirm = (props)=>{
|
|
|
57
57
|
return local.confirmLabel;
|
|
58
58
|
}
|
|
59
59
|
}), null);
|
|
60
|
-
insert(_el$3, createComponent(
|
|
60
|
+
insert(_el$3, createComponent(button_0, {
|
|
61
61
|
size: "sm",
|
|
62
62
|
variant: "ghost",
|
|
63
63
|
get isDisabled () {
|
|
@@ -77,4 +77,4 @@ const InlineConfirm = (props)=>{
|
|
|
77
77
|
})();
|
|
78
78
|
};
|
|
79
79
|
const table_InlineConfirm = InlineConfirm;
|
|
80
|
-
export
|
|
80
|
+
export default table_InlineConfirm;
|
|
@@ -2,7 +2,7 @@ import { createComponent, insert, mergeProps, spread, template } from "solid-js/
|
|
|
2
2
|
import { For, Show, splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
4
|
import { EmptyState } from "../empty-state/index.js";
|
|
5
|
-
import
|
|
5
|
+
import icon from "../icon/index.js";
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template("<div><ul>"), _tmpl$2 = /*#__PURE__*/ template("<li class=py-8 data-slot=table-mobile-list-view-empty>"), _tmpl$3 = /*#__PURE__*/ template("<li>");
|
|
7
7
|
const MobileListView = (props)=>{
|
|
8
8
|
const [local, rest] = splitProps(props, [
|
|
@@ -31,7 +31,7 @@ const MobileListView = (props)=>{
|
|
|
31
31
|
return [
|
|
32
32
|
createComponent(EmptyState.Icon, {
|
|
33
33
|
get children () {
|
|
34
|
-
return createComponent(
|
|
34
|
+
return createComponent(icon, {
|
|
35
35
|
get name () {
|
|
36
36
|
return local.emptyIcon ?? "icon-[mdi--inbox-outline]";
|
|
37
37
|
},
|
|
@@ -102,4 +102,4 @@ const MobileListView = (props)=>{
|
|
|
102
102
|
})();
|
|
103
103
|
};
|
|
104
104
|
const table_MobileListView = MobileListView;
|
|
105
|
-
export
|
|
105
|
+
export default table_MobileListView;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
2
|
import { Show, splitProps } from "solid-js";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import
|
|
4
|
+
import icon from "../icon/index.js";
|
|
5
5
|
var _tmpl$ = /*#__PURE__*/ template("<span>");
|
|
6
|
-
const
|
|
6
|
+
const SortIcon = (props)=>{
|
|
7
7
|
const [local, rest] = splitProps(props, [
|
|
8
8
|
"state",
|
|
9
9
|
"size",
|
|
@@ -44,7 +44,7 @@ const SortIcon_SortIcon = (props)=>{
|
|
|
44
44
|
return customIcon();
|
|
45
45
|
},
|
|
46
46
|
get fallback () {
|
|
47
|
-
return createComponent(
|
|
47
|
+
return createComponent(icon, {
|
|
48
48
|
get name () {
|
|
49
49
|
return iconName();
|
|
50
50
|
},
|
|
@@ -63,5 +63,5 @@ const SortIcon_SortIcon = (props)=>{
|
|
|
63
63
|
return _el$;
|
|
64
64
|
})();
|
|
65
65
|
};
|
|
66
|
-
const
|
|
67
|
-
export
|
|
66
|
+
const table_SortIcon = SortIcon;
|
|
67
|
+
export default table_SortIcon;
|
|
@@ -486,4 +486,5 @@ const Table = Object.assign(TableRoot, {
|
|
|
486
486
|
LoadMore: TableLoadMore,
|
|
487
487
|
LoadMoreContent: TableLoadMoreContent
|
|
488
488
|
});
|
|
489
|
-
export
|
|
489
|
+
export default Table;
|
|
490
|
+
export { TableBody, TableCell, TableColumn, TableColumnResizer, TableContent, TableExpandedRow, TableFooter, TableHeader, TableLoadMore, TableLoadMoreContent, TablePageSize, TableResizableContainer, TableRoot, TableRow, TableScrollContainer, useTableContentContext, useTableContext };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { external_ExpandToggle_js_default as ExpandToggle, external_InlineConfirm_js_default as InlineConfirm, external_MobileListView_js_default as MobileListView, external_SortIcon_js_default as SortIcon, TableBody, TableCell, TableColumn, TableColumnResizer, TableContent, TableExpandedRow, TableFooter, TableHeader, TableLoadMore, TableLoadMoreContent, TablePageSize, TableResizableContainer, TableRoot, TableRow, TableScrollContainer, external_VirtualSpacerRow_js_default as VirtualSpacerRow, external_Table_js_default as default, toSortDescriptor, toSortingState, useAnchoredOverlayPosition, useTableExpansion, useTableFiltering, useTableModel, useTablePagination, useTableSelection, useTableSorting };
|
|
1
|
+
export { TableBody, TableCell, TableColumn, TableColumnResizer, TableContent, TableExpandedRow, TableFooter, TableHeader, TableLoadMore, TableLoadMoreContent, TablePageSize, TableResizableContainer, TableRoot, TableRow, TableScrollContainer, default } from "./Table.js";
|
|
2
|
+
export { default as SortIcon } from "./SortIcon.js";
|
|
3
|
+
export { default as ExpandToggle } from "./ExpandToggle.js";
|
|
4
|
+
export { default as VirtualSpacerRow } from "./VirtualSpacerRow.js";
|
|
5
|
+
export { default as MobileListView } from "./MobileListView.js";
|
|
6
|
+
export { default as InlineConfirm } from "./InlineConfirm.js";
|
|
7
|
+
export { toSortDescriptor, toSortingState, useAnchoredOverlayPosition, useTableExpansion, useTableFiltering, useTableModel, useTablePagination, useTableSelection, useTableSorting } from "./hooks/index.js";
|
|
@@ -379,9 +379,10 @@ const Tabs = Object.assign(TabsRoot, {
|
|
|
379
379
|
Root: TabsRoot,
|
|
380
380
|
ListContainer: TabListContainer,
|
|
381
381
|
List: TabList,
|
|
382
|
-
Tab,
|
|
382
|
+
Tab: Tab,
|
|
383
383
|
Indicator: TabIndicator,
|
|
384
384
|
Separator: TabSeparator,
|
|
385
385
|
Panel: TabPanel
|
|
386
386
|
});
|
|
387
|
-
export
|
|
387
|
+
export default Tabs;
|
|
388
|
+
export { Tab, TabIndicator, TabList, TabListContainer, TabPanel, TabSeparator, Tabs, TabsRoot };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Tabs, external_Tabs_js_default as default };
|
|
1
|
+
export { Tabs, default } from "./Tabs.js";
|