@vkzstudio/muza-ui 1.0.44 → 1.0.45
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/DataTable/DataTable.d.ts +14 -5
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +39 -39
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +38 -7
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +165 -163
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +3 -17
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.d.ts +30 -11
- package/dist/components/ExpandableTable/ExpandableTable.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.js +100 -111
- package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts +3 -1
- package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.d.ts +6 -0
- package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.js +38 -41
- package/dist/components/FileUpload/FileUpload.d.ts +32 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.js +87 -83
- package/dist/components/FileUpload/FileUpload.stories.d.ts +1 -0
- package/dist/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
- package/dist/components/Flex/Flex.d.ts +1 -1
- package/dist/components/Icons/CustomBadges.d.ts +14 -0
- package/dist/components/Icons/CustomBadges.d.ts.map +1 -0
- package/dist/components/Icons/CustomBadges.js +334 -0
- package/dist/components/Icons/CustomIcons.d.ts +24 -0
- package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +88 -42
- package/dist/components/Icons/CustomLogos.d.ts +29 -0
- package/dist/components/Icons/CustomLogos.d.ts.map +1 -0
- package/dist/components/Icons/CustomLogos.js +593 -0
- package/dist/components/Icons/LogosAndBadges.stories.d.ts +7 -0
- package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +2 -0
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +24 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.js +71 -52
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +2 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +18 -17
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.d.ts +266 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.d.ts.map +1 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.examples.d.ts +39 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.examples.d.ts.map +1 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.js +134 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.stories.d.ts +14 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.stories.d.ts.map +1 -0
- package/dist/components/ResponsiveLayoutTable/index.d.ts +2 -0
- package/dist/components/ResponsiveLayoutTable/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +20 -7
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +123 -92
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/utils.d.ts +1 -0
- package/dist/components/Select/utils.d.ts.map +1 -1
- package/dist/components/Select/utils.js +5 -2
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/ToggleCheckButton/ToggleCheckButton.d.ts +69 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.d.ts.map +1 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.js +64 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts +8 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts.map +1 -0
- package/dist/components/ToggleCheckButton/index.d.ts +2 -0
- package/dist/components/ToggleCheckButton/index.d.ts.map +1 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts +19 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts.map +1 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.stories.d.ts +8 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.stories.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/use-is-breakpoint.d.ts +11 -0
- package/dist/hooks/use-is-breakpoint.d.ts.map +1 -1
- package/dist/hooks/use-is-breakpoint.js +24 -13
- package/dist/index.js +236 -215
- package/dist/muza-ui.css +1 -1
- package/dist/styles/token-colors.css +64 -3
- package/dist/styles/token-sizes.css +86 -54
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/cn.js +16 -5
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
declare const toggleCheckButtonVariants: (props?: ({
|
|
4
|
+
error?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Props for the ToggleCheckButton component.
|
|
8
|
+
* Extends Radix Checkbox root props, sharing the Checkbox API for controlled
|
|
9
|
+
* and uncontrolled use and form integration, but rendered as a compact
|
|
10
|
+
* icon-only pill.
|
|
11
|
+
*/
|
|
12
|
+
export interface ToggleCheckButtonProps extends Omit<ComponentProps<typeof CheckboxPrimitive.Root>, 'asChild' | 'children'> {
|
|
13
|
+
/**
|
|
14
|
+
* Controlled checked state. Use with `onCheckedChange` for fully controlled
|
|
15
|
+
* behavior. Accepts `'indeterminate'` for a partially-selected state (e.g.
|
|
16
|
+
* a parent row whose children are mixed).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <ToggleCheckButton checked={allSelected ? true : someSelected ? 'indeterminate' : false} />
|
|
20
|
+
*/
|
|
21
|
+
checked?: boolean | 'indeterminate';
|
|
22
|
+
/** Initial checked state for uncontrolled usage. @default false */
|
|
23
|
+
defaultChecked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Fires when the checked state changes. Receives `true`, `false`, or
|
|
26
|
+
* `'indeterminate'` — narrow to `boolean` before storing in typical state.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* onCheckedChange={(value) => setChecked(value === true)}
|
|
30
|
+
*/
|
|
31
|
+
onCheckedChange?: (checked: boolean | 'indeterminate') => void;
|
|
32
|
+
/** Prevents interaction and applies disabled styling. @default false */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** Name attribute for form submission. */
|
|
35
|
+
name?: string;
|
|
36
|
+
/** Value attribute for form submission. */
|
|
37
|
+
value?: string;
|
|
38
|
+
/** Marks the control as required for form submission. @default false */
|
|
39
|
+
required?: boolean;
|
|
40
|
+
/** Custom ID for the underlying button element. */
|
|
41
|
+
id?: string;
|
|
42
|
+
/** Applies error styling (red icon) for validation failure. @default false */
|
|
43
|
+
error?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Accessible name for the icon-only control. Should be supplied unless an
|
|
46
|
+
* external `<label htmlFor>` is associated via `id`.
|
|
47
|
+
*/
|
|
48
|
+
'aria-label'?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A compact icon-only toggle that shares the Checkbox API.
|
|
52
|
+
* Renders a 32×32 circular button showing a check-circle icon that fills in
|
|
53
|
+
* when checked. Because it uses the Radix Checkbox primitive, it integrates
|
|
54
|
+
* with HTML forms exactly like Checkbox (supports `name`, `value`, `required`).
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* const [checked, setChecked] = useState(false)
|
|
59
|
+
*
|
|
60
|
+
* <ToggleCheckButton
|
|
61
|
+
* checked={checked}
|
|
62
|
+
* onCheckedChange={(value) => setChecked(value === true)}
|
|
63
|
+
* aria-label="Mark as done"
|
|
64
|
+
* />
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare const ToggleCheckButton: import('react').ForwardRefExoticComponent<Omit<ToggleCheckButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
68
|
+
export { ToggleCheckButton, toggleCheckButtonVariants };
|
|
69
|
+
//# sourceMappingURL=ToggleCheckButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleCheckButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleCheckButton/ToggleCheckButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA+B,MAAM,OAAO,CAAA;AACxE,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAK7D,QAAA,MAAM,yBAAyB;;8EAwB9B,CAAA;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBACf,SAAQ,IAAI,CACV,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7C,SAAS,GAAG,UAAU,CACvB;IACD;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,eAAe,CAAA;IACnC,mEAAmE;IACnE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,KAAK,IAAI,CAAA;IAC9D,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,8EAA8E;IAC9E,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,iBAAiB,mIAwBrB,CAAA;AAGF,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import * as o from "@radix-ui/react-checkbox";
|
|
4
|
+
import { cva as l } from "class-variance-authority";
|
|
5
|
+
import { cn as h } from "../../utils/cn.js";
|
|
6
|
+
import { CheckCircleOutline as u, CheckCircleBold as g } from "@solar-icons/react-perf";
|
|
7
|
+
const m = l(
|
|
8
|
+
[
|
|
9
|
+
"group inline-flex size-comp-button-h-xs shrink-0 items-center justify-center rounded-full",
|
|
10
|
+
"cursor-pointer transition-colors",
|
|
11
|
+
"focus-visible-default",
|
|
12
|
+
"[&>svg]:size-icon-small [&>svg]:shrink-0",
|
|
13
|
+
"text-comp-button-toggle-check-icon-def",
|
|
14
|
+
"hover:text-comp-button-toggle-check-icon-hover",
|
|
15
|
+
"focus-visible:text-comp-button-toggle-check-icon-focused",
|
|
16
|
+
"data-[state=checked]:text-comp-button-toggle-check-icon-active",
|
|
17
|
+
"data-[state=checked]:hover:text-comp-button-toggle-check-icon-hover",
|
|
18
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-comp-button-toggle-check-icon-disabled disabled:data-[state=checked]:text-comp-button-toggle-check-icon-disabled"
|
|
19
|
+
],
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
error: {
|
|
23
|
+
true: "text-text-state-error-def hover:text-text-state-error-def focus-visible:text-text-state-error-def data-[state=checked]:text-text-state-error-def data-[state=checked]:hover:text-text-state-error-def",
|
|
24
|
+
false: ""
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
error: !1
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
), f = n(({ className: c, disabled: r, required: e, error: a, ...i }, s) => /* @__PURE__ */ d(
|
|
32
|
+
o.Root,
|
|
33
|
+
{
|
|
34
|
+
ref: s,
|
|
35
|
+
"data-slot": "toggle-check-button",
|
|
36
|
+
className: h(m({ error: a, className: c })),
|
|
37
|
+
disabled: r,
|
|
38
|
+
required: e,
|
|
39
|
+
"aria-required": e,
|
|
40
|
+
...i,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
u,
|
|
44
|
+
{
|
|
45
|
+
"aria-hidden": "true",
|
|
46
|
+
className: "group-data-[state=checked]:hidden"
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
|
+
o.Indicator,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "toggle-check-button-indicator",
|
|
53
|
+
asChild: !0,
|
|
54
|
+
children: /* @__PURE__ */ t(g, { "aria-hidden": "true" })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
));
|
|
60
|
+
f.displayName = "ToggleCheckButton";
|
|
61
|
+
export {
|
|
62
|
+
f as ToggleCheckButton,
|
|
63
|
+
m as toggleCheckButtonVariants
|
|
64
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ToggleCheckButton } from './ToggleCheckButton';
|
|
3
|
+
declare const meta: Meta<typeof ToggleCheckButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ToggleCheckButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AllStates: Story;
|
|
8
|
+
//# sourceMappingURL=ToggleCheckButton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleCheckButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleCheckButton/ToggleCheckButton.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAmCxC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE/C,eAAO,MAAM,OAAO,EAAE,KAuBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAiEvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleCheckButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PartnerOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Language {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface WebCheckoutNavProps {
|
|
13
|
+
partnerOptions: PartnerOption[];
|
|
14
|
+
languages: Language[];
|
|
15
|
+
}
|
|
16
|
+
export declare const partnerOptions: PartnerOption[];
|
|
17
|
+
export declare const languages: Language[];
|
|
18
|
+
export declare const WebCheckoutNav: ({ partnerOptions, languages, }: WebCheckoutNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=WebCheckoutNav.examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebCheckoutNav.examples.d.ts","sourceRoot":"","sources":["../../../src/components/WebCheckoutNav/WebCheckoutNav.examples.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AA8BhD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,SAAS,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,aAAa,EAAE,CAAA;IAC/B,SAAS,EAAE,QAAQ,EAAE,CAAA;CACtB;AAID,eAAO,MAAM,cAAc,EAAE,aAAa,EAgBzC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,QAAQ,EAI/B,CAAA;AAID,eAAO,MAAM,cAAc,GAAI,gCAG5B,mBAAmB,4CA6MrB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { WebCheckoutNavProps } from './WebCheckoutNav.examples';
|
|
3
|
+
declare const meta: Meta<WebCheckoutNavProps>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<WebCheckoutNavProps>;
|
|
6
|
+
export declare const Responsive: Story;
|
|
7
|
+
export declare const SinglePartner: Story;
|
|
8
|
+
//# sourceMappingURL=WebCheckoutNav.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebCheckoutNav.stories.d.ts","sourceRoot":"","sources":["../../../src/components/WebCheckoutNav/WebCheckoutNav.stories.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAEL,KAAK,mBAAmB,EAGzB,MAAM,2BAA2B,CAAA;AAGlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAwCnC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAA;AAE1C,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA"}
|
|
@@ -44,10 +44,12 @@ export * from './Textarea';
|
|
|
44
44
|
export * from './TextEditor';
|
|
45
45
|
export * from './TimePicker';
|
|
46
46
|
export * from './Toggle';
|
|
47
|
+
export * from './ToggleCheckButton';
|
|
47
48
|
export * from './ToggleGroup';
|
|
48
49
|
export * from './Tooltip';
|
|
49
50
|
export * from './Typography';
|
|
50
51
|
export * from './DataTable';
|
|
51
52
|
export * from './ExpandableTable';
|
|
53
|
+
export * from './ResponsiveLayoutTable';
|
|
52
54
|
export * from './Skeleton';
|
|
53
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAA;AAG/B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC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AY,CAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const useIsMinXs: () => boolean;
|
|
2
|
+
export declare const useIsMaxXs: () => boolean;
|
|
1
3
|
export declare const useIsMinSm: () => boolean;
|
|
2
4
|
export declare const useIsMaxSm: () => boolean;
|
|
3
5
|
export declare const useIsMinMd: () => boolean;
|
|
@@ -10,4 +12,13 @@ export declare const useIsMin2xl: () => boolean;
|
|
|
10
12
|
export declare const useIsMax2xl: () => boolean;
|
|
11
13
|
export declare const useIsMin3xl: () => boolean;
|
|
12
14
|
export declare const useIsMax3xl: () => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Named breakpoint matching the project's Tailwind breakpoint scale.
|
|
17
|
+
*/
|
|
18
|
+
export type ResponsiveBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
19
|
+
/**
|
|
20
|
+
* Returns the current match state of all named breakpoints.
|
|
21
|
+
* Each key is `true` when the viewport is at or above that breakpoint.
|
|
22
|
+
*/
|
|
23
|
+
export declare const useBreakpoints: () => Record<ResponsiveBreakpoint, boolean>;
|
|
13
24
|
//# sourceMappingURL=use-is-breakpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-breakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/use-is-breakpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-is-breakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/use-is-breakpoint.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,UAAU,eAEtB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,CAAA;AAET;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAQpE,CAAA"}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import { useMediaQuery as
|
|
2
|
-
const
|
|
1
|
+
import { useMediaQuery as s } from "./use-media-query.js";
|
|
2
|
+
const t = 21, n = 40, e = 48, r = 64, m = 80, u = 100, i = 120, h = () => s(`(min-width: ${t}rem)`), w = () => s(`(max-width: ${t}rem)`), o = () => s(`(min-width: ${n}rem)`), $ = () => s(`(max-width: ${n}rem)`), x = () => s(`(min-width: ${e}rem)`), X = () => s(`(max-width: ${e}rem)`), c = () => s(`(min-width: ${r}rem)`), l = () => s(`(max-width: ${r}rem)`), I = () => s(`(min-width: ${m}rem)`), B = () => s(`(max-width: ${m}rem)`), M = () => s(`(min-width: ${u}rem)`), A = () => s(`(max-width: ${u}rem)`), d = () => s(`(min-width: ${i}rem)`), E = () => s(`(max-width: ${i}rem)`), K = () => ({
|
|
3
|
+
xs: !0,
|
|
4
|
+
sm: o(),
|
|
5
|
+
md: x(),
|
|
6
|
+
lg: c(),
|
|
7
|
+
xl: I(),
|
|
8
|
+
"2xl": M(),
|
|
9
|
+
"3xl": d()
|
|
10
|
+
});
|
|
3
11
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
M as
|
|
13
|
-
|
|
12
|
+
K as useBreakpoints,
|
|
13
|
+
A as useIsMax2xl,
|
|
14
|
+
E as useIsMax3xl,
|
|
15
|
+
l as useIsMaxLg,
|
|
16
|
+
X as useIsMaxMd,
|
|
17
|
+
$ as useIsMaxSm,
|
|
18
|
+
B as useIsMaxXl,
|
|
19
|
+
w as useIsMaxXs,
|
|
20
|
+
M as useIsMin2xl,
|
|
21
|
+
d as useIsMin3xl,
|
|
22
|
+
c as useIsMinLg,
|
|
23
|
+
x as useIsMinMd,
|
|
14
24
|
o as useIsMinSm,
|
|
15
|
-
|
|
25
|
+
I as useIsMinXl,
|
|
26
|
+
h as useIsMinXs
|
|
16
27
|
};
|