@fragment-build/ui 2.0.2 → 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/README.md +19 -4
- package/dist/components/base/Accordion.d.ts +2 -2
- package/dist/components/base/Accordion.js +1 -1
- package/dist/components/base/Accordion.js.map +1 -1
- package/dist/components/base/Alert.d.ts +1 -1
- package/dist/components/base/Alert.js +1 -1
- package/dist/components/base/Alert.js.map +1 -1
- package/dist/components/base/Autocomplete.d.ts +3 -3
- package/dist/components/base/Autocomplete.js +1 -1
- package/dist/components/base/Autocomplete.js.map +1 -1
- package/dist/components/base/Avatar.d.ts +2 -2
- package/dist/components/base/Avatar.js +1 -1
- package/dist/components/base/Avatar.js.map +1 -1
- package/dist/components/base/Badge.d.ts +1 -1
- package/dist/components/base/Badge.js +1 -1
- package/dist/components/base/Breadcrumbs.d.ts +2 -2
- package/dist/components/base/Breadcrumbs.js +1 -1
- package/dist/components/base/Breadcrumbs.js.map +1 -1
- package/dist/components/base/Button.d.ts +2 -2
- package/dist/components/base/Button.js +1 -1
- package/dist/components/base/Button.js.map +1 -1
- package/dist/components/base/Calendar.d.ts +1 -1
- package/dist/components/base/Calendar.js +1 -1
- package/dist/components/base/Calendar.js.map +1 -1
- package/dist/components/base/Card.d.ts +2 -2
- package/dist/components/base/Card.js +2 -2
- package/dist/components/base/Card.js.map +1 -1
- package/dist/components/base/Checkbox.d.ts +2 -2
- package/dist/components/base/Checkbox.js +1 -1
- package/dist/components/base/Checkbox.js.map +1 -1
- package/dist/components/base/Chip.d.ts +1 -1
- package/dist/components/base/Chip.js +1 -1
- package/dist/components/base/Chip.js.map +1 -1
- package/dist/components/base/CircularProgress.d.ts +1 -1
- package/dist/components/base/CircularProgress.js +1 -1
- package/dist/components/base/CircularProgress.js.map +1 -1
- package/dist/components/base/Code.d.ts +1 -1
- package/dist/components/base/Code.js +1 -1
- package/dist/components/base/Code.js.map +1 -1
- package/dist/components/base/DateInput.d.ts +1 -1
- package/dist/components/base/DateInput.js +1 -1
- package/dist/components/base/DateInput.js.map +1 -1
- package/dist/components/base/DatePicker.d.ts +1 -1
- package/dist/components/base/DatePicker.js +1 -1
- package/dist/components/base/DatePicker.js.map +1 -1
- package/dist/components/base/DateRangePicker.d.ts +1 -1
- package/dist/components/base/DateRangePicker.js +1 -1
- package/dist/components/base/DateRangePicker.js.map +1 -1
- package/dist/components/base/Divider.d.ts +1 -1
- package/dist/components/base/Divider.js +1 -1
- package/dist/components/base/Divider.js.map +1 -1
- package/dist/components/base/Drawer.d.ts +5 -5
- package/dist/components/base/Drawer.js +1 -1
- package/dist/components/base/Drawer.js.map +1 -1
- package/dist/components/base/Dropdown.d.ts +5 -5
- package/dist/components/base/Dropdown.js +1 -1
- package/dist/components/base/Dropdown.js.map +1 -1
- package/dist/components/base/Form.js +1 -1
- package/dist/components/base/Form.js.map +1 -1
- package/dist/components/base/Image.d.ts +1 -1
- package/dist/components/base/Image.js +1 -1
- package/dist/components/base/Input.d.ts +1 -1
- package/dist/components/base/Input.js +1 -1
- package/dist/components/base/InputOtp.d.ts +1 -1
- package/dist/components/base/InputOtp.js +1 -1
- package/dist/components/base/InputOtp.js.map +1 -1
- package/dist/components/base/Kbd.d.ts +1 -1
- package/dist/components/base/Kbd.js +1 -1
- package/dist/components/base/Kbd.js.map +1 -1
- package/dist/components/base/Link.d.ts +1 -1
- package/dist/components/base/Link.js +1 -1
- package/dist/components/base/Link.js.map +1 -1
- package/dist/components/base/Listbox.d.ts +3 -3
- package/dist/components/base/Listbox.js +1 -1
- package/dist/components/base/Listbox.js.map +1 -1
- package/dist/components/base/Modal.d.ts +5 -5
- package/dist/components/base/Modal.js +1 -1
- package/dist/components/base/Navbar.d.ts +7 -7
- package/dist/components/base/Navbar.js +1 -1
- package/dist/components/base/Navbar.js.map +1 -1
- package/dist/components/base/NumberInput.d.ts +1 -1
- package/dist/components/base/NumberInput.js +1 -1
- package/dist/components/base/NumberInput.js.map +1 -1
- package/dist/components/base/Pagination.d.ts +3 -3
- package/dist/components/base/Pagination.js +1 -1
- package/dist/components/base/Pagination.js.map +1 -1
- package/dist/components/base/Popover.d.ts +165 -165
- package/dist/components/base/Popover.js +1 -1
- package/dist/components/base/Popover.js.map +1 -1
- package/dist/components/base/Progress.d.ts +1 -1
- package/dist/components/base/Progress.js +1 -1
- package/dist/components/base/Progress.js.map +1 -1
- package/dist/components/base/Radio.d.ts +2 -2
- package/dist/components/base/Radio.js +1 -1
- package/dist/components/base/RangeCalendar.d.ts +1 -1
- package/dist/components/base/RangeCalendar.js +1 -1
- package/dist/components/base/RangeCalendar.js.map +1 -1
- package/dist/components/base/ScrollShadow.d.ts +1 -1
- package/dist/components/base/ScrollShadow.js +1 -1
- package/dist/components/base/ScrollShadow.js.map +1 -1
- package/dist/components/base/Select.d.ts +3 -3
- package/dist/components/base/Select.js +1 -1
- package/dist/components/base/Select.js.map +1 -1
- package/dist/components/base/Skeleton.d.ts +1 -1
- package/dist/components/base/Skeleton.js +1 -1
- package/dist/components/base/Skeleton.js.map +1 -1
- package/dist/components/base/Slider.d.ts +1 -1
- package/dist/components/base/Slider.js +1 -1
- package/dist/components/base/Slider.js.map +1 -1
- package/dist/components/base/Snippet.d.ts +1 -1
- package/dist/components/base/Snippet.js +1 -1
- package/dist/components/base/Snippet.js.map +1 -1
- package/dist/components/base/Spacer.d.ts +1 -1
- package/dist/components/base/Spacer.js +1 -1
- package/dist/components/base/Spacer.js.map +1 -1
- package/dist/components/base/Spinner.d.ts +1 -1
- package/dist/components/base/Spinner.js +1 -1
- package/dist/components/base/Spinner.js.map +1 -1
- package/dist/components/base/Switch.d.ts +1 -1
- package/dist/components/base/Switch.js +1 -1
- package/dist/components/base/Switch.js.map +1 -1
- package/dist/components/base/Table.d.ts +6 -6
- package/dist/components/base/Table.js +1 -1
- package/dist/components/base/Table.js.map +1 -1
- package/dist/components/base/Tabs.d.ts +2 -2
- package/dist/components/base/Tabs.js +1 -1
- package/dist/components/base/Tabs.js.map +1 -1
- package/dist/components/base/Textarea.d.ts +1 -1
- package/dist/components/base/Textarea.js +1 -1
- package/dist/components/base/Textarea.js.map +1 -1
- package/dist/components/base/TimeInput.d.ts +1 -1
- package/dist/components/base/TimeInput.js +1 -1
- package/dist/components/base/TimeInput.js.map +1 -1
- package/dist/components/base/Toast.d.ts +2 -2
- package/dist/components/base/Toast.js +2 -2
- package/dist/components/base/Tooltip.d.ts +1 -1
- package/dist/components/base/Tooltip.js +1 -1
- package/dist/components/base/Tooltip.js.map +1 -1
- package/dist/components/base/User.d.ts +1 -1
- package/dist/components/base/User.js +1 -1
- package/dist/components/base/User.js.map +1 -1
- package/dist/components/chart/Chart.js +1 -1
- package/dist/components/chart/Chart.js.map +1 -1
- package/dist/components/charts/ChartCircle.d.ts +18 -0
- package/dist/components/charts/ChartCircle.js +18 -0
- package/dist/components/charts/ChartCircle.js.map +1 -0
- package/dist/components/charts/ChartCircle.stories.d.ts +6 -0
- package/dist/components/charts/ChartCircle.stories.js +35 -0
- package/dist/components/charts/ChartCircle.stories.js.map +1 -0
- package/dist/components/color-input/ColorInput.d.ts +2 -2
- package/dist/components/color-input/ColorInput.js +2 -1
- package/dist/components/color-input/ColorInput.js.map +1 -1
- package/dist/components/color-selector/ColorSelector.d.ts +1 -1
- package/dist/components/color-selector/ColorSelector.js +2 -1
- package/dist/components/color-selector/ColorSelector.js.map +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/multi-switch/MultiSwitch.d.ts +1 -1
- package/dist/components/multi-switch/MultiSwitch.js +2 -2
- package/dist/components/multi-switch/MultiSwitch.js.map +1 -1
- package/dist/components/theme-switch/ThemeSwitch.d.ts +1 -1
- package/dist/components/theme-switch/ThemeSwitch.js +1 -1
- package/dist/components/theme-switch/ThemeSwitch.js.map +1 -1
- package/dist/context.d.ts +7 -3
- package/dist/context.js.map +1 -1
- package/dist/fragments/form/Form.js +2 -2
- package/dist/fragments/form/Form.js.map +1 -1
- package/dist/fragments/form/FormSection.js +1 -1
- package/dist/fragments/form/FormSection.js.map +1 -1
- package/dist/fragments/form/FormSection.stories.js +2 -1
- package/dist/fragments/form/FormSection.stories.js.map +1 -1
- package/dist/fragments/page/PageHeader.js +1 -1
- package/dist/fragments/page/PageHeader.js.map +1 -1
- package/dist/fragments/page/PageHeader.stories.js +1 -1
- package/dist/fragments/page/PageHeader.stories.js.map +1 -1
- package/dist/fragments/shell/Shell.d.ts +2 -3
- package/dist/fragments/shell/Shell.js.map +1 -1
- package/dist/fragments/shell/Shell.stories.js +10 -1
- package/dist/fragments/shell/Shell.stories.js.map +1 -1
- package/dist/fragments/sidebar/Sidebar.d.ts +3 -1
- package/dist/fragments/sidebar/Sidebar.js +11 -2
- package/dist/fragments/sidebar/Sidebar.js.map +1 -1
- package/dist/fragments/sidebar/Sidebar.stories.js +4 -1
- package/dist/fragments/sidebar/Sidebar.stories.js.map +1 -1
- package/dist/fragments/sidebar/Sidebar.styles.js +1 -1
- package/dist/fragments/sidebar/Sidebar.styles.js.map +1 -1
- package/dist/fragments/widget/Widget.js +3 -2
- package/dist/fragments/widget/Widget.js.map +1 -1
- package/dist/fragments/widget/Widget.stories.js +2 -1
- package/dist/fragments/widget/Widget.stories.js.map +1 -1
- package/dist/index.d.ts +66 -5
- package/dist/index.js +68 -5
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +1 -1
- package/dist/provider.js.map +1 -1
- package/dist/tailwind.plugin.d.ts +1 -1
- package/dist/tailwind.plugin.js +1 -1
- package/package.json +2 -1
- package/dist/components/base/index.d.ts +0 -48
- package/dist/components/base/index.js +0 -49
- package/dist/components/base/index.js.map +0 -1
- package/dist/components/index.d.ts +0 -7
- package/dist/components/index.js +0 -8
- package/dist/components/index.js.map +0 -1
- package/dist/fragments/index.d.ts +0 -6
- package/dist/fragments/index.js +0 -7
- package/dist/fragments/index.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select as HeroSelect, SelectItem as HeroSelectItem, SelectSection as HeroSelectSection, } from '@heroui/
|
|
1
|
+
import { Select as HeroSelect, SelectItem as HeroSelectItem, SelectSection as HeroSelectSection, } from '@heroui/select';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
3
|
export const Select = withFragment(HeroSelect, 'select');
|
|
4
4
|
export const SelectItem = withFragment(HeroSelectItem, 'selectItem');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/components/base/Select.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,UAAU,IAAI,cAAc,EAC5B,aAAa,IAAI,iBAAiB,GACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/components/base/Select.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,UAAU,IAAI,cAAc,EAC5B,aAAa,IAAI,iBAAiB,GACnC,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Skeleton: import("@heroui/
|
|
1
|
+
export declare const Skeleton: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/skeleton").SkeletonProps, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Skeleton as HeroSkeleton } from '@heroui/
|
|
1
|
+
import { Skeleton as HeroSkeleton } from '@heroui/skeleton';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
3
|
export const Skeleton = withFragment(HeroSkeleton, 'skeleton');
|
|
4
4
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/base/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/base/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Slider: import("@heroui/
|
|
1
|
+
export declare const Slider: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/slider").SliderProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/base/Slider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/base/Slider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Snippet: import("@heroui/
|
|
1
|
+
export declare const Snippet: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/snippet").SnippetProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snippet.js","sourceRoot":"","sources":["../../../src/components/base/Snippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Snippet.js","sourceRoot":"","sources":["../../../src/components/base/Snippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Spacer: import("@heroui/
|
|
1
|
+
export declare const Spacer: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"span", import("@heroui/spacer").SpacerProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer.js","sourceRoot":"","sources":["../../../src/components/base/Spacer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Spacer.js","sourceRoot":"","sources":["../../../src/components/base/Spacer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Spinner: import("@heroui/
|
|
1
|
+
export declare const Spinner: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/spinner").SpinnerProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/components/base/Spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/components/base/Spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Switch: import("@heroui/
|
|
1
|
+
export declare const Switch: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"input", import("@heroui/switch").SwitchProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/components/base/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/components/base/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const Table: import("@heroui/
|
|
2
|
-
export declare const TableBody: <T>(props: import("@heroui/
|
|
3
|
-
export declare const TableCell: (props: import("@heroui/
|
|
4
|
-
export declare const TableColumn: <T>(props: import("@heroui/
|
|
5
|
-
export declare const TableHeader: <T>(props: import("@heroui/
|
|
6
|
-
export declare const TableRow: (props: import("@heroui/
|
|
1
|
+
export declare const Table: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"table", import("@heroui/table").TableProps<object>, never>;
|
|
2
|
+
export declare const TableBody: <T>(props: import("@heroui/table").TableBodyProps<T>) => JSX.Element;
|
|
3
|
+
export declare const TableCell: (props: import("@heroui/table").TableCellProps) => JSX.Element;
|
|
4
|
+
export declare const TableColumn: <T>(props: import("@heroui/table").TableColumnProps<T>) => JSX.Element;
|
|
5
|
+
export declare const TableHeader: <T>(props: import("@heroui/table").TableHeaderProps<T>) => JSX.Element;
|
|
6
|
+
export declare const TableRow: (props: import("@heroui/table").TableRowProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Table as HeroTable, TableBody as HeroTableBody, TableCell as HeroTableCell, TableColumn as HeroTableColumn, TableHeader as HeroTableHeader, TableRow as HeroTableRow, } from '@heroui/
|
|
1
|
+
import { Table as HeroTable, TableBody as HeroTableBody, TableCell as HeroTableCell, TableColumn as HeroTableColumn, TableHeader as HeroTableHeader, TableRow as HeroTableRow, } from '@heroui/table';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
3
|
export const Table = withFragment(HeroTable, 'table');
|
|
4
4
|
export const TableBody = withFragment(HeroTableBody, 'tableBody');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/base/Table.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,SAAS,IAAI,aAAa,EAC1B,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,QAAQ,IAAI,YAAY,GACzB,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/base/Table.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,SAAS,IAAI,aAAa,EAC1B,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,QAAQ,IAAI,YAAY,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const Tab: <T extends object>(props: import("@heroui/
|
|
2
|
-
export declare const Tabs: <T extends object>(props: import("@heroui/
|
|
1
|
+
export declare const Tab: <T extends object>(props: import("@heroui/tabs").TabItemProps<T>) => JSX.Element;
|
|
2
|
+
export declare const Tabs: <T extends object>(props: import("@heroui/tabs").TabsProps<T>) => import("react").ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tab as HeroTab, Tabs as HeroTabs, } from '@heroui/
|
|
1
|
+
import { Tab as HeroTab, Tabs as HeroTabs, } from '@heroui/tabs';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
3
|
export const Tab = withFragment(HeroTab, 'tab');
|
|
4
4
|
export const Tabs = withFragment(HeroTabs, 'tabs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/base/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,IAAI,OAAO,EACd,IAAI,IAAI,QAAQ,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/base/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,IAAI,OAAO,EACd,IAAI,IAAI,QAAQ,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAChD,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Textarea: import("@heroui/
|
|
1
|
+
export declare const Textarea: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"textarea", import("@heroui/input").TextAreaProps, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Textarea as HeroTextarea } from '@heroui/
|
|
1
|
+
import { Textarea as HeroTextarea } from '@heroui/input';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
3
|
export const Textarea = withFragment(HeroTextarea, 'textArea');
|
|
4
4
|
//# sourceMappingURL=Textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/components/base/Textarea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/components/base/Textarea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TimeInput: <T extends import("@react-types/datepicker").TimeValue>(props: import("@heroui/
|
|
1
|
+
export declare const TimeInput: <T extends import("@react-types/datepicker").TimeValue>(props: import("@heroui/date-input").TimeInputProps<T>) => import("react").ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimeInput as HeroTimeInput } from '@heroui/
|
|
1
|
+
import { TimeInput as HeroTimeInput } from '@heroui/date-input';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
3
|
export const TimeInput = withFragment(HeroTimeInput, 'timeInput');
|
|
4
4
|
//# sourceMappingURL=TimeInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.js","sourceRoot":"","sources":["../../../src/components/base/TimeInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TimeInput.js","sourceRoot":"","sources":["../../../src/components/base/TimeInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ToastProvider } from '@heroui/
|
|
2
|
-
export declare const Toast: import("@heroui/
|
|
1
|
+
export { ToastProvider } from '@heroui/toast';
|
|
2
|
+
export declare const Toast: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/toast").ToastProps, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Toast as HeroToast } from '@heroui/
|
|
1
|
+
import { Toast as HeroToast } from '@heroui/toast';
|
|
2
2
|
import { withFragment } from '../../withFragment';
|
|
3
|
-
export { ToastProvider } from '@heroui/
|
|
3
|
+
export { ToastProvider } from '@heroui/toast';
|
|
4
4
|
export const Toast = withFragment(HeroToast, 'toast');
|
|
5
5
|
//# sourceMappingURL=Toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Tooltip: import("@heroui/
|
|
1
|
+
export declare const Tooltip: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/tooltip").TooltipProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/base/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/base/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const User: import("@heroui/
|
|
1
|
+
export declare const User: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", import("@heroui/user").UserProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/components/base/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/components/base/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useContext, useEffect, useState } from 'react';
|
|
6
6
|
import defaultsDeep from 'lodash.defaultsdeep';
|
|
7
|
-
import { Spinner } from '../base';
|
|
7
|
+
import { Spinner } from '../base/Spinner';
|
|
8
8
|
import { FragmentUIContext } from '../../context';
|
|
9
9
|
export const Chart = (props) => {
|
|
10
10
|
const context = useContext(FragmentUIContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chart.js","sourceRoot":"","sources":["../../../src/components/chart/Chart.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Chart.js","sourceRoot":"","sources":["../../../src/components/chart/Chart.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAUlD,MAAM,CAAC,MAAM,KAAK,GAAyB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAmB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,IAAI,EAAE,CAAC,EAAE,CAAC,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Data {
|
|
7
|
+
name: string;
|
|
8
|
+
[key: string]: string | number;
|
|
9
|
+
}
|
|
10
|
+
export interface ChartCircleProps {
|
|
11
|
+
color: ButtonProps["color"];
|
|
12
|
+
categories: string[];
|
|
13
|
+
chartData: ChartData[];
|
|
14
|
+
width?: number | string;
|
|
15
|
+
height?: number | string;
|
|
16
|
+
}
|
|
17
|
+
export declare const ChartCircle: React.FC<ChartCircleProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ResponsiveContainer, PieChart, Pie, Tooltip, Cell } from "recharts";
|
|
3
|
+
;
|
|
4
|
+
;
|
|
5
|
+
const formatTotal = (total) => {
|
|
6
|
+
return total >= 1000 ? `${(total / 1000).toFixed(1)}K` : total;
|
|
7
|
+
};
|
|
8
|
+
export const ChartCircle = ({ categories, color, chartData, width, height }) => {
|
|
9
|
+
return (_jsx(ResponsiveContainer, { className: "[&_.recharts-surface]:outline-hidden", width: width, height: height, children: _jsxs(PieChart, { accessibilityLayer: true, margin: { top: 0, right: 0, left: 0, bottom: 0 }, children: [_jsx(Tooltip, { content: ({ label, payload }) => (_jsxs("div", { className: "rounded-medium bg-background text-tiny shadow-small flex h-8 min-w-[120px] items-center gap-x-2 px-1", children: [_jsx("span", { className: "text-foreground font-medium", children: label }), payload?.map((p, index) => {
|
|
10
|
+
const name = p.name;
|
|
11
|
+
const value = p.value;
|
|
12
|
+
const category = categories.find((c) => c.toLowerCase() === name) ?? name;
|
|
13
|
+
return (_jsxs("div", { className: "flex w-full items-center gap-x-2", children: [_jsx("div", { className: "h-2 w-2 flex-none rounded-full", style: {
|
|
14
|
+
backgroundColor: p.payload.fill,
|
|
15
|
+
} }), _jsxs("div", { className: "text-default-700 flex w-full items-center justify-between gap-x-2 pr-1 text-xs", children: [_jsx("span", { className: "text-default-500", children: category }), _jsx("span", { className: "text-default-700 font-mono font-medium", children: formatTotal(value) })] })] }, `${index}-${name}`));
|
|
16
|
+
})] })), cursor: false }), _jsx(Pie, { animationDuration: 1000, animationEasing: "ease", data: chartData, dataKey: "value", innerRadius: "68%", nameKey: "name", paddingAngle: -20, strokeWidth: 0, children: chartData.map((_, index) => (_jsx(Cell, { fill: `hsl(var(--heroui-${color}-${(index + 1) * 200}))` }, `cell-${index}`))) })] }) }));
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ChartCircle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCircle.js","sourceRoot":"","sources":["../../../src/components/charts/ChartCircle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAY5E,CAAC;AAQD,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE;IACpC,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;AACjE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;IACzG,OAAO,CACL,KAAC,mBAAmB,IAClB,SAAS,EAAC,sCAAsC,EAChD,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,MAAC,QAAQ,IAAC,kBAAkB,QAAC,MAAM,EAAE,EAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,aACzE,KAAC,OAAO,IACN,OAAO,EAAE,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CAC7B,eAAK,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,CAAC,GACE,IACG,GACS,CACvB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChartCircle } from './ChartCircle';
|
|
2
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'components/ChartCircle',
|
|
5
|
+
component: ChartCircle,
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
10
|
+
export const Default = {
|
|
11
|
+
args: {
|
|
12
|
+
height: 500,
|
|
13
|
+
color: "primary",
|
|
14
|
+
categories: ["Chrome", "Safari", "Firefox", "Edge"],
|
|
15
|
+
chartData: [
|
|
16
|
+
{
|
|
17
|
+
name: "Chrome",
|
|
18
|
+
value: 350
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "Safari",
|
|
22
|
+
value: 280
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "Firefox",
|
|
26
|
+
value: 220
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "Edge",
|
|
30
|
+
value: 150
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=ChartCircle.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCircle.stories.js","sourceRoot":"","sources":["../../../src/components/charts/ChartCircle.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qGAAqG;AACrG,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;QACnD,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,GAAG;aACX;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { InputProps } from '@heroui/
|
|
1
|
+
import type { InputProps } from '@heroui/input';
|
|
2
2
|
/**
|
|
3
3
|
* Primary UI component for selecting a color
|
|
4
4
|
*/
|
|
5
5
|
export interface ColorInputProps extends InputProps {
|
|
6
6
|
placeholderValue?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const ColorInput:
|
|
8
|
+
export declare const ColorInput: React.FC<ColorInputProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { Avatar
|
|
3
|
+
import { Avatar } from '../base/Avatar';
|
|
4
|
+
import { Input } from '../base/Input';
|
|
4
5
|
import { withFragment } from '../../withFragment';
|
|
5
6
|
;
|
|
6
7
|
export const ColorInput = withFragment(({ defaultValue, placeholderValue, label = 'Color', errorMessage = 'Please enter a valid color in hex format e.g. #f3f or #ff33ff', onValueChange, isInvalid, value: controlledValue, placeholder, ...rest }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorInput.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAAe,SAAS,EAA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CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9D,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;IAEvB,MAAM,cAAc,GAAG,CAAC,CAAgC,EAAE,EAAE;QAC1D,IAAI,IAAI,CAAC,QAAQ;YAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,KAAK,OACA,IAAI,EACR,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,QAAQ,EACvB,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,OAAO,IAAI,YAAY,EACrC,WAAW,EAAE,WAAW,IAAI,gBAAgB,EAC5C,UAAU,EAAE,CACV,KAAC,MAAM,IACL,EAAE,EAAC,QAAQ,EACX,IAAI,EAAC,IAAI,EACT,YAAY,QACZ,QAAQ,EAAE,CACR,gBACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,wCAAwC,EAClD,KAAK,EAAE,gBAAgB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,EAC5D,QAAQ,EAAE,cAAc,GACxB,CACH,EACD,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,IAAI,gBAAgB,EAAE,EACrD,UAAU,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,QAAQ,EAAE,eAAe,EAAE,GAC/E,CACH,GACD,CACH,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import { Avatar
|
|
3
|
+
import { Avatar } from '../base/Avatar';
|
|
4
|
+
import { Button } from '../base/Button';
|
|
4
5
|
import { withFragment } from '../../withFragment';
|
|
5
6
|
export const ColorSelector = withFragment(({ values, value: controlledValue, defaultValue, onValueChange, icon, ...rest }) => {
|
|
6
7
|
const [value, setValue] = useState(defaultValue && values.includes(defaultValue) ? defaultValue : values[0]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorSelector.js","sourceRoot":"","sources":["../../../src/components/color-selector/ColorSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ColorSelector.js","sourceRoot":"","sources":["../../../src/components/color-selector/ColorSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAiBlD,MAAM,CAAC,MAAM,aAAa,GAAiC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzJ,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAE7G,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACb,IAAG,CAAC,eAAe;YAAE,OAAO;QAC5B,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC5B,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,cAAK,SAAS,EAAC,YAAY,YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACrB,KAAC,MAAM,IAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,QAAC,aAAa,QAAC,SAAS,EAAC,kBAAkB,YAC1F,KAAC,MAAM,IACL,YAAY,QACZ,QAAQ,EAAE,KAAK,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAK,EAChD,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EACjC,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAChC,UAAU,EAAE,KAAK,KAAK,KAAK,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAC1B,IAAI,GACR,GACK,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../src/components/grid/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../src/components/grid/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAWvC,MAAM,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,gCAAgC;KACvC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE;gBACF,IAAI,EAAE,aAAa;aACpB;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,4BAA4B;aACnC;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,4CAA4C;aACnD;SACF;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,cAAK,SAAS,EAAE,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useState } from 'react';
|
|
3
|
-
import { Button, ButtonGroup } from '../base';
|
|
3
|
+
import { Button, ButtonGroup } from '../base/Button';
|
|
4
4
|
import { withFragment } from '../../withFragment';
|
|
5
5
|
import { IconCheck, IconSlash, IconX } from '@tabler/icons-react';
|
|
6
|
-
import { tv } from '
|
|
6
|
+
import { tv } from 'tailwind-variants';
|
|
7
7
|
const multiSwitch = tv({
|
|
8
8
|
slots: {
|
|
9
9
|
button: 'min-w-0',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSwitch.js","sourceRoot":"","sources":["../../../src/components/multi-switch/MultiSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"MultiSwitch.js","sourceRoot":"","sources":["../../../src/components/multi-switch/MultiSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE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,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,KAAK,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,EACjI,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,EACxJ,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,IAC1H,IACb,CACJ,CAAC;AACJ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme } from 'next-themes';
|
|
3
3
|
import { IconMoon, IconSun } from '@tabler/icons-react';
|
|
4
|
-
import { Button } from '../base';
|
|
4
|
+
import { Button } from '../base/Button';
|
|
5
5
|
import { useEffect, useState } from 'react';
|
|
6
6
|
export const ThemeSwitch = (props) => {
|
|
7
7
|
const [mounted, setMounted] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeSwitch.js","sourceRoot":"","sources":["../../../src/components/theme-switch/ThemeSwitch.tsx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AC"}
|
package/dist/context.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { AccordionItemProps, AccordionProps, AlertProps, AutocompleteItemProps, AutocompleteProps, AutocompleteSectionProps, AvatarGroupProps, AvatarProps, BadgeProps, BreadcrumbsProps, ButtonGroupProps, ButtonProps, CalendarProps, CardProps, CheckboxGroupProps, CheckboxProps, ChipProps, CircularProgressProps, CodeProps, DateInputProps, DatePickerProps, DateRangePickerProps, DividerProps, DrawerBodyProps, DrawerContentProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DropdownItemProps, DropdownMenuProps, DropdownProps, DropdownSectionProps, DropdownTriggerProps, ImageProps, InputOtpProps, InputProps, KbdProps, LinkProps, ListboxItemProps, ListboxProps, ListboxSectionProps, ModalBodyProps, ModalContentProps, ModalFooterProps, ModalHeaderProps, ModalProps, NavbarBrandProps, NavbarContentProps, NavbarItemProps, NavbarMenuItemProps, NavbarMenuToggleProps, NavbarProps, NumberInputProps, PaginationCursorProps, PaginationItemProps, PaginationProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProgressProps, RadioGroupProps, RadioProps, RangeCalendarProps, ScrollShadowProps, SelectItemProps, SelectProps, SelectSectionProps, SkeletonProps, SliderProps, SnippetProps, SpacerProps, SpinnerProps, SwitchProps, TabItemProps, TableBodyProps, TableCellProps, TableColumnProps, TableHeaderProps, TableProps, TableRowProps, TabsProps, TextAreaProps, TimeInputProps, ToastProps, TooltipProps, UserProps } from '@heroui/react';
|
|
1
|
+
import type { AccordionItemProps, AccordionProps, AlertProps, AutocompleteItemProps, AutocompleteProps, AutocompleteSectionProps, AvatarGroupProps, AvatarProps, BadgeProps, BreadcrumbsProps, ButtonGroupProps, ButtonProps, CalendarProps, CardProps, CheckboxGroupProps, CheckboxProps, ChipProps, CircularProgressProps, CodeProps, DateInputProps, DatePickerProps, DateRangePickerProps, DividerProps, DrawerBodyProps, DrawerContentProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DropdownItemProps, DropdownMenuProps, DropdownProps, DropdownSectionProps, DropdownTriggerProps, ImageProps, InputOtpProps, InputProps, KbdProps, LinkProps, ListboxItemProps, ListboxProps, ListboxSectionProps, ModalBodyProps, ModalContentProps, ModalFooterProps, ModalHeaderProps, ModalProps, NavbarBrandProps, NavbarContentProps, NavbarItemProps, NavbarMenuItemProps, NavbarMenuToggleProps, NavbarProps, NumberInputProps, PaginationCursorProps, PaginationItemProps, PaginationProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProgressProps, RadioGroupProps, RadioProps, RangeCalendarProps, ScrollShadowProps, SelectItemProps, SelectProps, SelectSectionProps, SkeletonProps, SliderProps, SnippetProps, SpacerProps, SpinnerProps, SwitchProps, TabItemProps, TableBodyProps, TableCellProps, TableColumnProps, TableHeaderProps, TableProps, TableRowProps, TabsProps, TextAreaProps, TimeInputProps, ToastProps, TooltipProps, UserProps } from '@heroui/react';
|
|
2
2
|
import type { Props as ApexChartProps } from 'react-apexcharts';
|
|
3
|
-
import { ChartProps
|
|
4
|
-
import {
|
|
3
|
+
import type { ChartProps } from './components/chart/Chart';
|
|
4
|
+
import type { ColorInputProps } from './components/color-input/ColorInput';
|
|
5
|
+
import type { ColorSelectorProps } from './components/color-selector/ColorSelector';
|
|
6
|
+
import type { FormProps } from './fragments/form/Form';
|
|
7
|
+
import type { FormSectionProps } from './fragments/form/FormSection';
|
|
8
|
+
import type { MultiSwitchProps } from './components/multi-switch/MultiSwitch';
|
|
5
9
|
export interface FragmentUIContext {
|
|
6
10
|
defaults: {
|
|
7
11
|
accordion?: Partial<AccordionProps>;
|
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAA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