@xjur-ui/react 1.0.6 → 2.1.0
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/.turbo/turbo-build.log +279 -68
- package/CHANGELOG.md +114 -0
- package/README.md +146 -0
- package/dist/chunk-2CM3SFOY.js +2 -0
- package/dist/chunk-2CM3SFOY.js.map +1 -0
- package/dist/chunk-2CTBH6VI.js +2 -0
- package/dist/chunk-2CTBH6VI.js.map +1 -0
- package/dist/chunk-4BGTC333.js +2 -0
- package/dist/chunk-4BGTC333.js.map +1 -0
- package/dist/chunk-5WLIDYZH.js +2 -0
- package/dist/chunk-5WLIDYZH.js.map +1 -0
- package/dist/chunk-6AD6O6II.js +2 -0
- package/dist/chunk-6AD6O6II.js.map +1 -0
- package/dist/chunk-AA6V5YEC.js +2 -0
- package/dist/chunk-AA6V5YEC.js.map +1 -0
- package/dist/chunk-BK6FP63A.js +2 -0
- package/dist/chunk-BK6FP63A.js.map +1 -0
- package/dist/chunk-BZDGWC5O.js +2 -0
- package/dist/chunk-BZDGWC5O.js.map +1 -0
- package/dist/chunk-CBFC4QME.js +2 -0
- package/dist/chunk-CBFC4QME.js.map +1 -0
- package/dist/chunk-CI3ZXWEX.js +2 -0
- package/dist/chunk-CI3ZXWEX.js.map +1 -0
- package/dist/chunk-DFXHNK5D.js +2 -0
- package/dist/chunk-DFXHNK5D.js.map +1 -0
- package/dist/chunk-EIG6CBTQ.js +2 -0
- package/dist/chunk-EIG6CBTQ.js.map +1 -0
- package/dist/chunk-EXC2XOL6.js +2 -0
- package/dist/chunk-EXC2XOL6.js.map +1 -0
- package/dist/chunk-F4DYKYWJ.js +2 -0
- package/dist/chunk-F4DYKYWJ.js.map +1 -0
- package/dist/chunk-F5ZLEQGN.js +2 -0
- package/dist/chunk-F5ZLEQGN.js.map +1 -0
- package/dist/chunk-IKL6PSXU.js +2 -0
- package/dist/chunk-IKL6PSXU.js.map +1 -0
- package/dist/chunk-IRHU7PDO.js +2 -0
- package/dist/chunk-IRHU7PDO.js.map +1 -0
- package/dist/chunk-J4X5RQTR.js +2 -0
- package/dist/chunk-J4X5RQTR.js.map +1 -0
- package/dist/chunk-KIFR5VIE.js +2 -0
- package/dist/chunk-KIFR5VIE.js.map +1 -0
- package/dist/chunk-KS6WGBHQ.js +2 -0
- package/dist/chunk-KS6WGBHQ.js.map +1 -0
- package/dist/chunk-L4ET6GIZ.js +2 -0
- package/dist/chunk-L4ET6GIZ.js.map +1 -0
- package/dist/chunk-MZSV4LNY.js +2 -0
- package/dist/chunk-MZSV4LNY.js.map +1 -0
- package/dist/chunk-NELCN6E2.js +2 -0
- package/dist/chunk-NELCN6E2.js.map +1 -0
- package/dist/chunk-OS53BV63.js +3 -0
- package/dist/chunk-OS53BV63.js.map +1 -0
- package/dist/chunk-PKCW37CJ.js +2 -0
- package/dist/chunk-PKCW37CJ.js.map +1 -0
- package/dist/chunk-RWMV7APX.js +2 -0
- package/dist/chunk-RWMV7APX.js.map +1 -0
- package/dist/chunk-SLAAEXWI.js +2 -0
- package/dist/chunk-SLAAEXWI.js.map +1 -0
- package/dist/chunk-SXGSWVMZ.js +2 -0
- package/dist/chunk-SXGSWVMZ.js.map +1 -0
- package/dist/chunk-TB6KI6CL.js +2 -0
- package/dist/chunk-TB6KI6CL.js.map +1 -0
- package/dist/chunk-TSVURBUY.js +2 -0
- package/dist/chunk-TSVURBUY.js.map +1 -0
- package/dist/chunk-UXIVZWLB.js +2 -0
- package/dist/chunk-UXIVZWLB.js.map +1 -0
- package/dist/chunk-WEBAXQID.js +2 -0
- package/dist/chunk-WEBAXQID.js.map +1 -0
- package/dist/chunk-WV7QV2PU.js +2 -0
- package/dist/chunk-WV7QV2PU.js.map +1 -0
- package/dist/chunk-Z47R2CIM.js +2 -0
- package/dist/chunk-Z47R2CIM.js.map +1 -0
- package/dist/chunk-ZVVPUP7V.js +2 -0
- package/dist/chunk-ZVVPUP7V.js.map +1 -0
- package/dist/components/avatar-group.js +2 -179
- package/dist/components/avatar-group.js.map +1 -0
- package/dist/components/avatar.js +2 -59
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.js +2 -111
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +20 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/chip.d.ts +5 -2
- package/dist/components/chip.js +2 -256
- package/dist/components/chip.js.map +1 -0
- package/dist/components/collapsible.js +2 -41
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/dialog.d.ts +51 -0
- package/dist/components/dialog.js +2 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/divider.js +2 -29
- package/dist/components/divider.js.map +1 -0
- package/dist/components/drag-and-drop/drag-handle.d.ts +15 -0
- package/dist/components/drag-and-drop/drag-handle.js +2 -0
- package/dist/components/drag-and-drop/drag-handle.js.map +1 -0
- package/dist/components/drag-and-drop/drag-list-item.d.ts +14 -0
- package/dist/components/drag-and-drop/drag-list-item.js +2 -0
- package/dist/components/drag-and-drop/drag-list-item.js.map +1 -0
- package/dist/components/drag-and-drop/drag-list.d.ts +14 -0
- package/dist/components/drag-and-drop/drag-list.js +2 -0
- package/dist/components/drag-and-drop/drag-list.js.map +1 -0
- package/dist/components/drag-and-drop/drag-root.d.ts +6 -0
- package/dist/components/drag-and-drop/drag-root.js +2 -0
- package/dist/components/drag-and-drop/drag-root.js.map +1 -0
- package/dist/components/drag-and-drop/index.d.ts +10 -0
- package/dist/components/drag-and-drop/index.js +2 -0
- package/dist/components/drag-and-drop/index.js.map +1 -0
- package/dist/components/drag-and-drop/types/drag-item.d.ts +9 -0
- package/dist/components/drag-and-drop/types/drag-item.js +2 -0
- package/dist/components/drag-and-drop/types/drag-item.js.map +1 -0
- package/dist/components/dropdown-menu.js +2 -295
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/form/button.js +2 -0
- package/dist/components/form/button.js.map +1 -0
- package/dist/components/form/calendar.js +2 -0
- package/dist/components/form/calendar.js.map +1 -0
- package/dist/components/form/checkbox.js +2 -0
- package/dist/components/form/checkbox.js.map +1 -0
- package/dist/components/form/context/field.context.d.ts +15 -0
- package/dist/components/form/context/field.context.js +2 -0
- package/dist/components/form/context/field.context.js.map +1 -0
- package/dist/components/form/date-picker.d.ts +84 -0
- package/dist/components/form/date-picker.js +2 -0
- package/dist/components/form/date-picker.js.map +1 -0
- package/dist/components/form/floating-label.d.ts +6 -0
- package/dist/components/form/floating-label.js +2 -0
- package/dist/components/form/floating-label.js.map +1 -0
- package/dist/components/form/input.d.ts +95 -0
- package/dist/components/form/input.js +2 -0
- package/dist/components/form/input.js.map +1 -0
- package/dist/components/form/otp-input.js +2 -0
- package/dist/components/form/otp-input.js.map +1 -0
- package/dist/components/form/radio.js +2 -0
- package/dist/components/form/radio.js.map +1 -0
- package/dist/components/{rich-editor.d.ts → form/rich-editor.d.ts} +2 -1
- package/dist/components/form/rich-editor.js +2 -0
- package/dist/components/form/rich-editor.js.map +1 -0
- package/dist/components/form/search-input.js +2 -0
- package/dist/components/form/search-input.js.map +1 -0
- package/dist/components/form/select.d.ts +94 -0
- package/dist/components/form/select.js +2 -0
- package/dist/components/form/select.js.map +1 -0
- package/dist/components/form/switch.js +2 -0
- package/dist/components/form/switch.js.map +1 -0
- package/dist/components/full-calendar/calendar-add-event.d.ts +9 -0
- package/dist/components/full-calendar/calendar-add-event.js +2 -0
- package/dist/components/full-calendar/calendar-add-event.js.map +1 -0
- package/dist/components/full-calendar/calendar-body.d.ts +6 -0
- package/dist/components/full-calendar/calendar-body.js +2 -0
- package/dist/components/full-calendar/calendar-body.js.map +1 -0
- package/dist/components/full-calendar/calendar-cell.d.ts +11 -0
- package/dist/components/full-calendar/calendar-cell.js +2 -0
- package/dist/components/full-calendar/calendar-cell.js.map +1 -0
- package/dist/components/full-calendar/calendar-day-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-day-view.js +2 -0
- package/dist/components/full-calendar/calendar-day-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-event.d.ts +18 -0
- package/dist/components/full-calendar/calendar-event.js +2 -0
- package/dist/components/full-calendar/calendar-event.js.map +1 -0
- package/dist/components/full-calendar/calendar-header.d.ts +6 -0
- package/dist/components/full-calendar/calendar-header.js +2 -0
- package/dist/components/full-calendar/calendar-header.js.map +1 -0
- package/dist/components/full-calendar/calendar-month-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-month-view.js +2 -0
- package/dist/components/full-calendar/calendar-month-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.d.ts +9 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.js +2 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.js.map +1 -0
- package/dist/components/full-calendar/calendar-navigator.d.ts +5 -0
- package/dist/components/full-calendar/calendar-navigator.js +2 -0
- package/dist/components/full-calendar/calendar-navigator.js.map +1 -0
- package/dist/components/full-calendar/calendar-root.d.ts +30 -0
- package/dist/components/full-calendar/calendar-root.js +2 -0
- package/dist/components/full-calendar/calendar-root.js.map +1 -0
- package/dist/components/full-calendar/calendar-today-button.d.ts +9 -0
- package/dist/components/full-calendar/calendar-today-button.js +2 -0
- package/dist/components/full-calendar/calendar-today-button.js.map +1 -0
- package/dist/components/full-calendar/calendar-toggle-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-toggle-view.js +2 -0
- package/dist/components/full-calendar/calendar-toggle-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-view-renderer.d.ts +5 -0
- package/dist/components/full-calendar/calendar-view-renderer.js +2 -0
- package/dist/components/full-calendar/calendar-view-renderer.js.map +1 -0
- package/dist/components/full-calendar/calendar-week-day.d.ts +10 -0
- package/dist/components/full-calendar/calendar-week-day.js +2 -0
- package/dist/components/full-calendar/calendar-week-day.js.map +1 -0
- package/dist/components/full-calendar/calendar-week-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-week-view.js +2 -0
- package/dist/components/full-calendar/calendar-week-view.js.map +1 -0
- package/dist/components/full-calendar/helpers/calendar.d.ts +25 -0
- package/dist/components/full-calendar/helpers/calendar.js +2 -0
- package/dist/components/full-calendar/helpers/calendar.js.map +1 -0
- package/dist/components/full-calendar/index.d.ts +18 -0
- package/dist/components/full-calendar/index.js +2 -0
- package/dist/components/full-calendar/index.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-cell.d.ts +6 -0
- package/dist/components/full-calendar/types/calendar-cell.js +2 -0
- package/dist/components/full-calendar/types/calendar-cell.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-event.d.ts +8 -0
- package/dist/components/full-calendar/types/calendar-event.js +2 -0
- package/dist/components/full-calendar/types/calendar-event.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-view.d.ts +3 -0
- package/dist/components/full-calendar/types/calendar-view.js +2 -0
- package/dist/components/full-calendar/types/calendar-view.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-week-hour.d.ts +6 -0
- package/dist/components/full-calendar/types/calendar-week-hour.js +2 -0
- package/dist/components/full-calendar/types/calendar-week-hour.js.map +1 -0
- package/dist/components/horizontal-scroll.d.ts +11 -0
- package/dist/components/horizontal-scroll.js +2 -0
- package/dist/components/horizontal-scroll.js.map +1 -0
- package/dist/components/icon.d.ts +3 -4
- package/dist/components/icon.js +2 -177
- package/dist/components/icon.js.map +1 -0
- package/dist/components/list.js +2 -179
- package/dist/components/list.js.map +1 -0
- package/dist/components/logo.js +2 -324
- package/dist/components/logo.js.map +1 -0
- package/dist/components/selection-bar.d.ts +57 -0
- package/dist/components/selection-bar.js +2 -0
- package/dist/components/selection-bar.js.map +1 -0
- package/dist/components/sheet.d.ts +8 -8
- package/dist/components/sheet.js +2 -251
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.js +2 -16
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/status.js +2 -111
- package/dist/components/status.js.map +1 -0
- package/dist/components/table.js +2 -196
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +9 -6
- package/dist/components/tabs.js +2 -54
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag.d.ts +5 -2
- package/dist/components/tag.js +2 -189
- package/dist/components/tag.js.map +1 -0
- package/dist/components/tooltip.js +2 -58
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/typography.js +2 -78
- package/dist/components/typography.js.map +1 -0
- package/dist/components/upload.d.ts +74 -0
- package/dist/components/upload.js +2 -0
- package/dist/components/upload.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/icons-CmDuL0gZ.d.ts +4 -0
- package/dist/index.css +2 -2322
- package/dist/index.css.map +1 -0
- package/dist/logo-PQRZORCS.js +3 -0
- package/dist/logo-PQRZORCS.js.map +1 -0
- package/package.json +60 -18
- package/src/components/breadcrumb.tsx +119 -0
- package/src/components/chip.tsx +11 -3
- package/src/components/dialog.tsx +242 -0
- package/src/components/drag-and-drop/drag-handle.tsx +46 -0
- package/src/components/drag-and-drop/drag-list-item.tsx +91 -0
- package/src/components/drag-and-drop/drag-list.tsx +47 -0
- package/src/components/drag-and-drop/drag-root.tsx +30 -0
- package/src/components/drag-and-drop/index.ts +39 -0
- package/src/components/drag-and-drop/types/drag-item.ts +7 -0
- package/src/components/{calendar.tsx → form/calendar.tsx} +9 -8
- package/src/components/{checkbox.tsx → form/checkbox.tsx} +2 -2
- package/src/components/form/context/field.context.ts +27 -0
- package/src/components/form/date-picker.tsx +199 -0
- package/src/components/form/floating-label.tsx +60 -0
- package/src/components/form/input.tsx +235 -0
- package/src/components/{radio.tsx → form/radio.tsx} +1 -1
- package/src/components/{rich-editor.tsx → form/rich-editor.tsx} +10 -9
- package/src/components/{search-input.tsx → form/search-input.tsx} +2 -2
- package/src/components/form/select.tsx +274 -0
- package/src/components/full-calendar/calendar-add-event.tsx +15 -0
- package/src/components/full-calendar/calendar-body.tsx +12 -0
- package/src/components/full-calendar/calendar-cell.tsx +120 -0
- package/src/components/full-calendar/calendar-day-view.tsx +76 -0
- package/src/components/full-calendar/calendar-event.tsx +178 -0
- package/src/components/full-calendar/calendar-header.tsx +14 -0
- package/src/components/full-calendar/calendar-month-view.tsx +69 -0
- package/src/components/full-calendar/calendar-more-events-dropdown.tsx +39 -0
- package/src/components/full-calendar/calendar-navigator.tsx +86 -0
- package/src/components/full-calendar/calendar-root.tsx +165 -0
- package/src/components/full-calendar/calendar-today-button.tsx +21 -0
- package/src/components/full-calendar/calendar-toggle-view.tsx +61 -0
- package/src/components/full-calendar/calendar-view-renderer.tsx +19 -0
- package/src/components/full-calendar/calendar-week-day.tsx +49 -0
- package/src/components/full-calendar/calendar-week-view.tsx +88 -0
- package/src/components/full-calendar/helpers/calendar.ts +158 -0
- package/src/components/full-calendar/index.ts +16 -0
- package/src/components/full-calendar/types/calendar-cell.ts +4 -0
- package/src/components/full-calendar/types/calendar-event.ts +7 -0
- package/src/components/full-calendar/types/calendar-view.ts +1 -0
- package/src/components/full-calendar/types/calendar-week-hour.ts +4 -0
- package/src/components/horizontal-scroll.tsx +159 -0
- package/src/components/icon.tsx +1 -1
- package/src/components/logo.tsx +25 -20
- package/src/components/selection-bar.tsx +273 -0
- package/src/components/sheet.tsx +2 -2
- package/src/components/tabs.tsx +56 -37
- package/src/components/tag.tsx +11 -3
- package/src/components/upload.tsx +647 -0
- package/src/index.css +2 -2
- package/src/resources/icons.ts +4 -1
- package/src/resources/logo/index.tsx +33 -0
- package/tsup.config.ts +23 -5
- package/dist/components/button.js +0 -98
- package/dist/components/calendar.js +0 -751
- package/dist/components/checkbox.js +0 -153
- package/dist/components/date-picker.d.ts +0 -20
- package/dist/components/date-picker.js +0 -232
- package/dist/components/input.d.ts +0 -32
- package/dist/components/input.js +0 -315
- package/dist/components/otp-input.js +0 -47
- package/dist/components/radio.js +0 -156
- package/dist/components/rich-editor.js +0 -723
- package/dist/components/search-input.js +0 -274
- package/dist/components/select.d.ts +0 -33
- package/dist/components/select.js +0 -550
- package/dist/components/switch.js +0 -36
- package/dist/components/test.d.ts +0 -5
- package/dist/components/test.js +0 -8
- package/dist/index.js +0 -0
- package/src/components/date-picker.tsx +0 -160
- package/src/components/input.tsx +0 -256
- package/src/components/select.tsx +0 -240
- package/src/components/test.tsx +0 -3
- package/src/index.ts +0 -1
- package/src/resources/logo/index.ts +0 -3
- /package/dist/components/{button.d.ts → form/button.d.ts} +0 -0
- /package/dist/components/{calendar.d.ts → form/calendar.d.ts} +0 -0
- /package/dist/components/{checkbox.d.ts → form/checkbox.d.ts} +0 -0
- /package/dist/components/{otp-input.d.ts → form/otp-input.d.ts} +0 -0
- /package/dist/components/{radio.d.ts → form/radio.d.ts} +0 -0
- /package/dist/components/{search-input.d.ts → form/search-input.d.ts} +0 -0
- /package/dist/components/{switch.d.ts → form/switch.d.ts} +0 -0
- /package/src/components/{button.tsx → form/button.tsx} +0 -0
- /package/src/components/{otp-input.tsx → form/otp-input.tsx} +0 -0
- /package/src/components/{switch.tsx → form/switch.tsx} +0 -0
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
// src/components/select.tsx
|
|
2
|
-
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
-
import { cx as cx5 } from "@xjur-ui/util";
|
|
4
|
-
|
|
5
|
-
// src/components/list.tsx
|
|
6
|
-
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
7
|
-
import { cx, cva as cva2 } from "@xjur-ui/util";
|
|
8
|
-
|
|
9
|
-
// src/components/typography.tsx
|
|
10
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
11
|
-
import { cva } from "@xjur-ui/util";
|
|
12
|
-
import { memo } from "react";
|
|
13
|
-
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
var typographyVariants = cva("", {
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
body: "",
|
|
18
|
-
label: "",
|
|
19
|
-
title: "",
|
|
20
|
-
headline: ""
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
"sm-2x": "",
|
|
24
|
-
"sm-1x": "",
|
|
25
|
-
sm: "",
|
|
26
|
-
md: "",
|
|
27
|
-
lg: ""
|
|
28
|
-
},
|
|
29
|
-
weight: {
|
|
30
|
-
thin: "font-thin",
|
|
31
|
-
extraLight: "font-extralight",
|
|
32
|
-
light: "font-light",
|
|
33
|
-
normal: "font-normal",
|
|
34
|
-
medium: "font-medium",
|
|
35
|
-
semibold: "font-semibold",
|
|
36
|
-
bold: "font-bold",
|
|
37
|
-
extraBold: "font-extrabold",
|
|
38
|
-
black: "font-black"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
compoundVariants: [
|
|
42
|
-
{ variant: "body", size: "sm-1x", class: "text-size-body-sm-1x" },
|
|
43
|
-
{ variant: "body", size: "sm", class: "text-size-body-sm" },
|
|
44
|
-
{ variant: "body", size: "md", class: "text-size-body-md" },
|
|
45
|
-
{ variant: "body", size: "lg", class: "text-size-body-lg" },
|
|
46
|
-
{ variant: "label", size: "sm-2x", class: "text-size-label-sm-2x" },
|
|
47
|
-
{ variant: "label", size: "sm-1x", class: "text-size-label-sm-1x" },
|
|
48
|
-
{ variant: "label", size: "sm", class: "text-size-label-sm" },
|
|
49
|
-
{ variant: "label", size: "md", class: "text-size-label-md" },
|
|
50
|
-
{ variant: "label", size: "lg", class: "text-size-label-lg" },
|
|
51
|
-
{ variant: "title", size: "sm", class: "text-size-title-sm" },
|
|
52
|
-
{ variant: "title", size: "md", class: "text-size-title-md" },
|
|
53
|
-
{ variant: "title", size: "lg", class: "text-size-title-lg" },
|
|
54
|
-
{ variant: "headline", size: "sm", class: "text-size-headline-sm" },
|
|
55
|
-
{ variant: "headline", size: "md", class: "text-size-headline-md" },
|
|
56
|
-
{ variant: "headline", size: "lg", class: "text-size-headline-lg" }
|
|
57
|
-
],
|
|
58
|
-
defaultVariants: {
|
|
59
|
-
variant: "body",
|
|
60
|
-
size: "md",
|
|
61
|
-
weight: "normal"
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
var Typography = memo(
|
|
65
|
-
({
|
|
66
|
-
variant,
|
|
67
|
-
size,
|
|
68
|
-
weight,
|
|
69
|
-
asChild,
|
|
70
|
-
className,
|
|
71
|
-
...props
|
|
72
|
-
}) => {
|
|
73
|
-
const Component = asChild ? Slot : "span";
|
|
74
|
-
return /* @__PURE__ */ jsx(
|
|
75
|
-
Component,
|
|
76
|
-
{
|
|
77
|
-
className: typographyVariants({ variant, size, weight, className }),
|
|
78
|
-
...props
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
Typography.displayName = "Typography";
|
|
84
|
-
|
|
85
|
-
// src/components/list.tsx
|
|
86
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
87
|
-
function ListRoot({
|
|
88
|
-
className,
|
|
89
|
-
asChild,
|
|
90
|
-
...props
|
|
91
|
-
}) {
|
|
92
|
-
const Comp = asChild ? Slot2 : "div";
|
|
93
|
-
return /* @__PURE__ */ jsx2(
|
|
94
|
-
Comp,
|
|
95
|
-
{
|
|
96
|
-
...props,
|
|
97
|
-
className: cx(
|
|
98
|
-
className,
|
|
99
|
-
"rounded-small scrollbar-hide bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-10 max-h-[400px] list-none overflow-y-auto border"
|
|
100
|
-
)
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
function ListHeader({
|
|
105
|
-
className,
|
|
106
|
-
asChild,
|
|
107
|
-
...props
|
|
108
|
-
}) {
|
|
109
|
-
const Comp = asChild ? Slot2 : "div";
|
|
110
|
-
return /* @__PURE__ */ jsx2(Comp, { ...props, className: cx(className, "px-small pt-small-1x") });
|
|
111
|
-
}
|
|
112
|
-
function ListHeaderTitle({
|
|
113
|
-
variant = "label",
|
|
114
|
-
size = "sm",
|
|
115
|
-
weight = "medium",
|
|
116
|
-
className,
|
|
117
|
-
...props
|
|
118
|
-
}) {
|
|
119
|
-
return /* @__PURE__ */ jsx2(
|
|
120
|
-
Typography,
|
|
121
|
-
{
|
|
122
|
-
className: cx(className, "text-neutral-placeholder"),
|
|
123
|
-
size,
|
|
124
|
-
variant,
|
|
125
|
-
weight,
|
|
126
|
-
...props
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
function ListContent({
|
|
131
|
-
className,
|
|
132
|
-
asChild,
|
|
133
|
-
...props
|
|
134
|
-
}) {
|
|
135
|
-
const Comp = asChild ? Slot2 : "ul";
|
|
136
|
-
return /* @__PURE__ */ jsx2(
|
|
137
|
-
Comp,
|
|
138
|
-
{
|
|
139
|
-
...props,
|
|
140
|
-
className: cx("gap-small-1x p-small flex flex-col", className)
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
var variants = cva2(
|
|
145
|
-
[
|
|
146
|
-
"py-medium px-small flex items-center gap-small rounded-small-1x",
|
|
147
|
-
"bg-layer-2-idle text-neutral-dark",
|
|
148
|
-
"hover:bg-layer-2-hover transition-colors duration-100 ease-out",
|
|
149
|
-
"active:bg-layer-2-pressed"
|
|
150
|
-
],
|
|
151
|
-
{
|
|
152
|
-
variants: {
|
|
153
|
-
size: {
|
|
154
|
-
md: "h-large-4x",
|
|
155
|
-
lg: "h-large-7x"
|
|
156
|
-
},
|
|
157
|
-
isActive: {
|
|
158
|
-
true: "bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
defaultVariants: {
|
|
162
|
-
size: "md",
|
|
163
|
-
isActive: false
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
function ListItem({
|
|
168
|
-
className,
|
|
169
|
-
size,
|
|
170
|
-
isActive,
|
|
171
|
-
asChild,
|
|
172
|
-
...props
|
|
173
|
-
}) {
|
|
174
|
-
const Comp = asChild ? Slot2 : "li";
|
|
175
|
-
return /* @__PURE__ */ jsx2(Comp, { ...props, className: cx(variants({ size, isActive }), className) });
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// src/components/search-input.tsx
|
|
179
|
-
import { cva as cva4, cx as cx3 } from "@xjur-ui/util";
|
|
180
|
-
import { createContext } from "react";
|
|
181
|
-
|
|
182
|
-
// src/components/button.tsx
|
|
183
|
-
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
184
|
-
import { cva as cva3, cx as cx2 } from "@xjur-ui/util";
|
|
185
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
186
|
-
var buttonVariants = cva3(
|
|
187
|
-
[
|
|
188
|
-
"outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"
|
|
189
|
-
],
|
|
190
|
-
{
|
|
191
|
-
variants: {
|
|
192
|
-
size: {
|
|
193
|
-
md: "py-small_1x-alt px-medium text-size-body-md",
|
|
194
|
-
sm: "py-small-1x px-small text-size-label-sm",
|
|
195
|
-
icon_md: "p-small text-size-body-md h-large-4x w-large-4x",
|
|
196
|
-
icon_sm: "p-small-1x text-size-label-sm h-large-2x w-large-2x"
|
|
197
|
-
},
|
|
198
|
-
variant: {
|
|
199
|
-
primary: "",
|
|
200
|
-
secondary: "",
|
|
201
|
-
tertiary: "",
|
|
202
|
-
destructive: "",
|
|
203
|
-
outlined: "bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"
|
|
204
|
-
},
|
|
205
|
-
appearance: {
|
|
206
|
-
solid: "",
|
|
207
|
-
ghost: "bg-transparent"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
compoundVariants: [
|
|
211
|
-
{
|
|
212
|
-
variant: "primary",
|
|
213
|
-
appearance: "solid",
|
|
214
|
-
class: "bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
variant: "primary",
|
|
218
|
-
appearance: "ghost",
|
|
219
|
-
class: "text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
variant: "secondary",
|
|
223
|
-
appearance: "solid",
|
|
224
|
-
class: "bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
variant: "secondary",
|
|
228
|
-
appearance: "ghost",
|
|
229
|
-
class: "hover:bg-layer-1-hover active:bg-layer-1-pressed"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
variant: "tertiary",
|
|
233
|
-
appearance: "solid",
|
|
234
|
-
class: "bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
variant: "tertiary",
|
|
238
|
-
appearance: "ghost",
|
|
239
|
-
class: "hover:bg-layer-2-hover active:bg-layer-2-pressed"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
variant: "destructive",
|
|
243
|
-
appearance: "solid",
|
|
244
|
-
class: "bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
variant: "destructive",
|
|
248
|
-
appearance: "ghost",
|
|
249
|
-
class: "text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
defaultVariants: {
|
|
253
|
-
size: "md",
|
|
254
|
-
variant: "primary",
|
|
255
|
-
appearance: "solid"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
);
|
|
259
|
-
|
|
260
|
-
// src/components/search-input.tsx
|
|
261
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
262
|
-
var SearchInputRootContext = createContext({
|
|
263
|
-
variant: "outlined"
|
|
264
|
-
});
|
|
265
|
-
function SearchInputRoot({
|
|
266
|
-
className,
|
|
267
|
-
variant = "outlined",
|
|
268
|
-
...props
|
|
269
|
-
}) {
|
|
270
|
-
return /* @__PURE__ */ jsx4(SearchInputRootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx4("div", { className: cx3(className, "relative flex w-full"), ...props }) });
|
|
271
|
-
}
|
|
272
|
-
function SearchInputContent({
|
|
273
|
-
className,
|
|
274
|
-
...props
|
|
275
|
-
}) {
|
|
276
|
-
const contentVarians = cva4(
|
|
277
|
-
[
|
|
278
|
-
"gap-small py-small_1x-alt px-small flex items-center w-full",
|
|
279
|
-
"h-large-4x rounded-circle",
|
|
280
|
-
"border-border-layer-2 placeholder:placeholder-neutral-placeholder text-size-body-md text-neutral-dark border font-normal",
|
|
281
|
-
"group-hover:border-border-layer-3 transition-colors duration-200",
|
|
282
|
-
"disabled:opacity-60",
|
|
283
|
-
"focus-within:border-primary-idle"
|
|
284
|
-
],
|
|
285
|
-
{
|
|
286
|
-
variants: {
|
|
287
|
-
variant: {
|
|
288
|
-
outlined: "rounded-circle focus-within:border-primary-idle ",
|
|
289
|
-
line: "rounded-none border-t-0 border-b-1 border-x-0",
|
|
290
|
-
action: "rounded-tr-none rounded-br-none border-r-0"
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
);
|
|
295
|
-
return /* @__PURE__ */ jsx4(SearchInputRootContext.Consumer, { children: ({ variant }) => /* @__PURE__ */ jsx4(
|
|
296
|
-
"div",
|
|
297
|
-
{
|
|
298
|
-
className: cx3(className, contentVarians({ variant })),
|
|
299
|
-
"data-variant": variant,
|
|
300
|
-
...props
|
|
301
|
-
}
|
|
302
|
-
) });
|
|
303
|
-
}
|
|
304
|
-
function SearchInputText({
|
|
305
|
-
className,
|
|
306
|
-
...props
|
|
307
|
-
}) {
|
|
308
|
-
return /* @__PURE__ */ jsx4("input", { className: cx3(className, "flex-1 outline-none"), ...props });
|
|
309
|
-
}
|
|
310
|
-
function SearchInputSlot(props) {
|
|
311
|
-
return /* @__PURE__ */ jsx4("div", { ...props, "data-slot": "search-input-slot" });
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// src/components/icon.tsx
|
|
315
|
-
import { cx as cx4 } from "@xjur-ui/util";
|
|
316
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
317
|
-
function Icon({ className, filled = false, name, ...props }) {
|
|
318
|
-
return /* @__PURE__ */ jsx5(
|
|
319
|
-
"span",
|
|
320
|
-
{
|
|
321
|
-
...props,
|
|
322
|
-
className: cx4(
|
|
323
|
-
"material-symbols-outlined",
|
|
324
|
-
"text-size-body-lg",
|
|
325
|
-
className
|
|
326
|
-
),
|
|
327
|
-
style: {
|
|
328
|
-
fontVariationSettings: `'FILL' ${filled ? 1 : 0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,
|
|
329
|
-
...props.style
|
|
330
|
-
},
|
|
331
|
-
children: name
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
// src/components/select.tsx
|
|
337
|
-
import { Fragment, jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
338
|
-
function SelectRoot(props) {
|
|
339
|
-
return /* @__PURE__ */ jsx6(RadixPopover.Root, { ...props });
|
|
340
|
-
}
|
|
341
|
-
function SelectTrigger({
|
|
342
|
-
className,
|
|
343
|
-
...props
|
|
344
|
-
}) {
|
|
345
|
-
return /* @__PURE__ */ jsx6(
|
|
346
|
-
RadixPopover.Trigger,
|
|
347
|
-
{
|
|
348
|
-
className: cx5(
|
|
349
|
-
className,
|
|
350
|
-
"group h-large-4x rounded-small-1x gap-small py-small_1x-alt px-small relative flex w-full cursor-pointer items-center",
|
|
351
|
-
"bg-layer-2-idle border-border-layer-2 hover:border-border-layer-3 border",
|
|
352
|
-
"data-[state=open]:border-primary-idle",
|
|
353
|
-
"has-[input:not(:placeholder-shown)]:text-primary-idle",
|
|
354
|
-
"has-[input:not(:placeholder-shown)]:border-primary-idle"
|
|
355
|
-
),
|
|
356
|
-
...props
|
|
357
|
-
}
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
function SelectContent({
|
|
361
|
-
className,
|
|
362
|
-
children,
|
|
363
|
-
sideOffset = 4,
|
|
364
|
-
side = "bottom",
|
|
365
|
-
align = "start",
|
|
366
|
-
...props
|
|
367
|
-
}) {
|
|
368
|
-
return /* @__PURE__ */ jsx6(RadixPopover.Portal, { children: /* @__PURE__ */ jsx6(
|
|
369
|
-
RadixPopover.Content,
|
|
370
|
-
{
|
|
371
|
-
align,
|
|
372
|
-
className: cx5(
|
|
373
|
-
className,
|
|
374
|
-
"group z-10 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]"
|
|
375
|
-
),
|
|
376
|
-
side,
|
|
377
|
-
sideOffset,
|
|
378
|
-
...props,
|
|
379
|
-
children: /* @__PURE__ */ jsx6(ListRoot, { children })
|
|
380
|
-
}
|
|
381
|
-
) });
|
|
382
|
-
}
|
|
383
|
-
function SelectValue({
|
|
384
|
-
className,
|
|
385
|
-
displayValue = "",
|
|
386
|
-
...props
|
|
387
|
-
}) {
|
|
388
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
389
|
-
!!displayValue && /* @__PURE__ */ jsx6(Typography, { className: "text-neutral-dark group-has-[div[data-slot=select-left-slot]]:pl-large-1x", children: displayValue }),
|
|
390
|
-
/* @__PURE__ */ jsx6(
|
|
391
|
-
"input",
|
|
392
|
-
{
|
|
393
|
-
...props,
|
|
394
|
-
"aria-readonly": true,
|
|
395
|
-
className: cx5(className, "pointer-events-none"),
|
|
396
|
-
hidden: true,
|
|
397
|
-
placeholder: props.placeholder ?? " ",
|
|
398
|
-
readOnly: true
|
|
399
|
-
}
|
|
400
|
-
)
|
|
401
|
-
] });
|
|
402
|
-
}
|
|
403
|
-
function SelectMultiValue({
|
|
404
|
-
className,
|
|
405
|
-
values,
|
|
406
|
-
children,
|
|
407
|
-
...props
|
|
408
|
-
}) {
|
|
409
|
-
return /* @__PURE__ */ jsxs(
|
|
410
|
-
"div",
|
|
411
|
-
{
|
|
412
|
-
className: cx5(
|
|
413
|
-
className,
|
|
414
|
-
"gap-small-1x scrollbar-hide group-has-[div[data-slot=select-left-slot]]:pl-large-1x overflow-x-small flex"
|
|
415
|
-
),
|
|
416
|
-
...props,
|
|
417
|
-
children: [
|
|
418
|
-
children,
|
|
419
|
-
/* @__PURE__ */ jsx6(
|
|
420
|
-
"input",
|
|
421
|
-
{
|
|
422
|
-
"aria-readonly": true,
|
|
423
|
-
className: cx5(className, "pointer-events-none"),
|
|
424
|
-
hidden: true,
|
|
425
|
-
placeholder: " ",
|
|
426
|
-
readOnly: true,
|
|
427
|
-
value: values.join(",")
|
|
428
|
-
}
|
|
429
|
-
)
|
|
430
|
-
]
|
|
431
|
-
}
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
function SelectLabel({
|
|
435
|
-
className,
|
|
436
|
-
htmlFor,
|
|
437
|
-
children,
|
|
438
|
-
...props
|
|
439
|
-
}) {
|
|
440
|
-
return /* @__PURE__ */ jsx6(
|
|
441
|
-
Typography,
|
|
442
|
-
{
|
|
443
|
-
asChild: true,
|
|
444
|
-
className: cx5(
|
|
445
|
-
"inline-block max-w-full truncate text-left font-normal",
|
|
446
|
-
"left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2",
|
|
447
|
-
"ease transition-all duration-250",
|
|
448
|
-
// Content Open
|
|
449
|
-
"group-data-[state=open]:text-primary-idle",
|
|
450
|
-
"group-data-[state=open]:-top-[3px]",
|
|
451
|
-
"group-data-[state=open]:text-size-label-sm-1x",
|
|
452
|
-
"group-data-[state=open]:font-medium",
|
|
453
|
-
// Filled
|
|
454
|
-
"group-has-[input:not(:placeholder-shown)]:text-primary-idle",
|
|
455
|
-
"group-has-[input:not(:placeholder-shown)]:-top-[3px]",
|
|
456
|
-
"group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x",
|
|
457
|
-
"group-has-[input:not(:placeholder-shown)]:font-medium",
|
|
458
|
-
// If has left slot
|
|
459
|
-
"group-has-[div[data-slot=select-left-slot]]:left-large-4x",
|
|
460
|
-
"group-has-[div[data-slot=select-left-slot]]:group-data-[state=open]:left-small",
|
|
461
|
-
"group-has-[div[data-slot=select-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small",
|
|
462
|
-
// If has right slot
|
|
463
|
-
"group-has-[div[data-slot=select-right-slot]]:right-large-4x",
|
|
464
|
-
"group-has-[div[data-slot=select-right-slot]]:group-data-[state=open]:right-small",
|
|
465
|
-
"group-has-[div[data-slot=select-right-slot]]:group-has-[input:not(:placeholder-shown)]:right-small",
|
|
466
|
-
// Animate
|
|
467
|
-
"group-data-[state=open]:animate-in",
|
|
468
|
-
"group-data-[state=closed]:animate-out",
|
|
469
|
-
"group-has-[input:not(:placeholder-shown)]:animate-out",
|
|
470
|
-
className
|
|
471
|
-
),
|
|
472
|
-
weight: "medium",
|
|
473
|
-
...props,
|
|
474
|
-
children: /* @__PURE__ */ jsx6("label", { htmlFor, children: /* @__PURE__ */ jsx6("span", { className: "bg-layer-2-idle rounded-small-1x max-w-full", children }) })
|
|
475
|
-
}
|
|
476
|
-
);
|
|
477
|
-
}
|
|
478
|
-
function SelectOptions(props) {
|
|
479
|
-
return /* @__PURE__ */ jsx6(ListContent, { ...props });
|
|
480
|
-
}
|
|
481
|
-
function SelectOption({
|
|
482
|
-
className,
|
|
483
|
-
...props
|
|
484
|
-
}) {
|
|
485
|
-
return /* @__PURE__ */ jsx6(ListItem, { className: cx5(className, "cursor-pointer"), ...props });
|
|
486
|
-
}
|
|
487
|
-
function SelectOptionText(props) {
|
|
488
|
-
return /* @__PURE__ */ jsx6(Typography, { ...props });
|
|
489
|
-
}
|
|
490
|
-
function SelectHeader(props) {
|
|
491
|
-
return /* @__PURE__ */ jsx6(ListHeader, { ...props });
|
|
492
|
-
}
|
|
493
|
-
function SelectHeaderTitle(props) {
|
|
494
|
-
return /* @__PURE__ */ jsx6(ListHeaderTitle, { ...props });
|
|
495
|
-
}
|
|
496
|
-
function SelectDropdown(props) {
|
|
497
|
-
return /* @__PURE__ */ jsx6("div", { ...props });
|
|
498
|
-
}
|
|
499
|
-
function SelectLeftSlot({ className, ...props }) {
|
|
500
|
-
return /* @__PURE__ */ jsx6(
|
|
501
|
-
"div",
|
|
502
|
-
{
|
|
503
|
-
...props,
|
|
504
|
-
className: cx5(
|
|
505
|
-
className,
|
|
506
|
-
"left-small absolute top-1/2 flex -translate-y-1/2 items-center justify-center"
|
|
507
|
-
),
|
|
508
|
-
"data-slot": "select-left-slot"
|
|
509
|
-
}
|
|
510
|
-
);
|
|
511
|
-
}
|
|
512
|
-
function SelectRightSlot({
|
|
513
|
-
className,
|
|
514
|
-
...props
|
|
515
|
-
}) {
|
|
516
|
-
return /* @__PURE__ */ jsx6(
|
|
517
|
-
"div",
|
|
518
|
-
{
|
|
519
|
-
...props,
|
|
520
|
-
className: cx5(
|
|
521
|
-
className,
|
|
522
|
-
"right-small absolute top-1/2 flex -translate-y-1/2 items-center justify-center"
|
|
523
|
-
),
|
|
524
|
-
"data-slot": "select-right-slot"
|
|
525
|
-
}
|
|
526
|
-
);
|
|
527
|
-
}
|
|
528
|
-
function SelectSearch(props) {
|
|
529
|
-
return /* @__PURE__ */ jsx6(SearchInputRoot, { variant: "line", children: /* @__PURE__ */ jsxs(SearchInputContent, { children: [
|
|
530
|
-
/* @__PURE__ */ jsx6(SearchInputSlot, { children: /* @__PURE__ */ jsx6(Icon, { className: "text-icon-neutral-3", name: "search" }) }),
|
|
531
|
-
/* @__PURE__ */ jsx6(SearchInputText, { ...props })
|
|
532
|
-
] }) });
|
|
533
|
-
}
|
|
534
|
-
export {
|
|
535
|
-
SelectContent,
|
|
536
|
-
SelectDropdown,
|
|
537
|
-
SelectHeader,
|
|
538
|
-
SelectHeaderTitle,
|
|
539
|
-
SelectLabel,
|
|
540
|
-
SelectLeftSlot,
|
|
541
|
-
SelectMultiValue,
|
|
542
|
-
SelectOption,
|
|
543
|
-
SelectOptionText,
|
|
544
|
-
SelectOptions,
|
|
545
|
-
SelectRightSlot,
|
|
546
|
-
SelectRoot,
|
|
547
|
-
SelectSearch,
|
|
548
|
-
SelectTrigger,
|
|
549
|
-
SelectValue
|
|
550
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// src/components/switch.tsx
|
|
2
|
-
import "react";
|
|
3
|
-
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4
|
-
import { cx } from "@xjur-ui/util";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
function Switch({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
SwitchPrimitive.Root,
|
|
12
|
-
{
|
|
13
|
-
className: cx(
|
|
14
|
-
"w-large-3x h-large rounded-circle inline-flex shrink-0 items-center border border-transparent",
|
|
15
|
-
"peer data-[state=checked]:bg-primary-idle data-[state=unchecked]:bg-alt-4",
|
|
16
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
17
|
-
"hover:shadow-focus-primary p-[2px]",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
20
|
-
"data-slot": "switch",
|
|
21
|
-
...props,
|
|
22
|
-
children: /* @__PURE__ */ jsx(
|
|
23
|
-
SwitchPrimitive.Thumb,
|
|
24
|
-
{
|
|
25
|
-
className: cx(
|
|
26
|
-
"bg-layer-2-idle size-medium pointer-events-none rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
27
|
-
),
|
|
28
|
-
"data-slot": "switch-thumb"
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
Switch
|
|
36
|
-
};
|
package/dist/components/test.js
DELETED
package/dist/index.js
DELETED
|
File without changes
|