@kimdw-rtk/ui 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/cjs.js +5 -0
- package/dist/_virtual/cssesc.js +5 -0
- package/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/_virtual/jsx-runtime2.js +3 -0
- package/dist/_virtual/picocolors.js +5 -0
- package/dist/_virtual/picocolors2.js +3 -0
- package/dist/_virtual/react-jsx-runtime.development.js +3 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +3 -0
- package/dist/components/Accordion/Accordion.css.js +8 -5
- package/dist/components/Accordion/Accordion.js +13 -8
- package/dist/components/Accordion/AccordionContent.css.js +7 -4
- package/dist/components/Accordion/AccordionContent.js +18 -16
- package/dist/components/Accordion/AccordionContext.js +5 -2
- package/dist/components/Accordion/AccordionTrigger.css.js +7 -4
- package/dist/components/Accordion/AccordionTrigger.js +9 -7
- package/dist/components/Alert/index.js +49 -5
- package/dist/components/Box/Box.css.js +6 -3
- package/dist/components/Box/index.js +13 -7
- package/dist/components/Button/Button.css.js +11 -8
- package/dist/components/Button/index.js +57 -11
- package/dist/components/Card/Card.css.js +9 -6
- package/dist/components/Card/Card.js +14 -7
- package/dist/components/Card/CardContent.css.js +6 -3
- package/dist/components/Card/CardContent.js +12 -6
- package/dist/components/Card/CardInteraction.css.js +5 -2
- package/dist/components/Card/CardInteraction.js +53 -8
- package/dist/components/Card/CardThumbnail.css.js +5 -2
- package/dist/components/Card/CardThumbnail.js +12 -6
- package/dist/components/Chip/Chip.css.js +9 -6
- package/dist/components/Chip/Chip.js +14 -7
- package/dist/components/Confirm/index.js +48 -5
- package/dist/components/Dialog/Dialog.css.js +7 -4
- package/dist/components/Dialog/Dialog.js +51 -7
- package/dist/components/Dialog/DialogContent.css.js +8 -5
- package/dist/components/Dialog/DialogContent.js +51 -7
- package/dist/components/Dialog/DialogFooter.js +50 -6
- package/dist/components/Dialog/DialogHeader.css.js +7 -4
- package/dist/components/Dialog/DialogHeader.js +52 -8
- package/dist/components/Navigation/NavigationAside.css.js +5 -2
- package/dist/components/Navigation/NavigationAside.js +12 -7
- package/dist/components/Navigation/NavigationBar.css.js +8 -5
- package/dist/components/Navigation/NavigationBar.js +14 -7
- package/dist/components/Navigation/NavigationContainer.css.js +5 -2
- package/dist/components/Navigation/NavigationContainer.js +12 -6
- package/dist/components/Navigation/NavigationDrawer.css.js +9 -6
- package/dist/components/Navigation/NavigationDrawer.js +52 -8
- package/dist/components/Navigation/NavigationItem.css.js +9 -5
- package/dist/components/Navigation/NavigationItem.js +12 -6
- package/dist/components/Navigation/NavigationLogo.css.js +5 -2
- package/dist/components/Navigation/NavigationLogo.js +12 -6
- package/dist/components/Navigation/NavigationMenu.css.js +8 -5
- package/dist/components/Navigation/NavigationMenu.js +14 -7
- package/dist/components/Range/Range.css.js +12 -9
- package/dist/components/Range/Range.js +17 -11
- package/dist/components/ScrollArea/ScrollArea.css.js +10 -7
- package/dist/components/ScrollArea/ScrollArea.js +16 -10
- package/dist/components/Select/Select.css.js +6 -3
- package/dist/components/Select/Select.js +18 -12
- package/dist/components/Select/SelectContext.js +5 -2
- package/dist/components/Select/SelectOption.css.js +6 -3
- package/dist/components/Select/SelectOption.js +8 -6
- package/dist/components/Select/SelectOptionList.css.js +7 -4
- package/dist/components/Select/SelectOptionList.js +12 -8
- package/dist/components/Select/SelectTrigger.css.js +9 -6
- package/dist/components/Select/SelectTrigger.js +14 -9
- package/dist/components/Skeleton/Skeleton.css.js +7 -4
- package/dist/components/Skeleton/index.js +12 -6
- package/dist/components/Table/Table.css.js +6 -3
- package/dist/components/Table/Table.js +14 -7
- package/dist/components/Table/TableBody.js +11 -5
- package/dist/components/Table/TableCell.css.js +8 -5
- package/dist/components/Table/TableCell.js +13 -7
- package/dist/components/Table/TableHead.css.js +6 -3
- package/dist/components/Table/TableHead.js +13 -7
- package/dist/components/Table/TableHeader.js +11 -5
- package/dist/components/Table/TableRow.css.js +5 -2
- package/dist/components/Table/TableRow.js +12 -6
- package/dist/components/Tabs/Tabs.js +12 -7
- package/dist/components/Tabs/TabsContent.js +12 -7
- package/dist/components/Tabs/TabsList.css.js +6 -3
- package/dist/components/Tabs/TabsList.js +12 -6
- package/dist/components/Tabs/TabsProvider.js +5 -3
- package/dist/components/Tabs/TabsTrigger.css.js +6 -3
- package/dist/components/Tabs/TabsTrigger.js +13 -8
- package/dist/components/TextField/TextField.css.js +9 -6
- package/dist/components/TextField/index.js +14 -7
- package/dist/components/Toast/Toast.css.js +9 -6
- package/dist/components/Toast/index.js +54 -9
- package/dist/components/Typography/Typography.css.js +5 -2
- package/dist/components/Typography/index.js +13 -8
- package/dist/contexts/UIProvider.js +52 -6
- package/dist/hooks/useDialog/index.js +52 -7
- package/dist/hooks/useMouseScroll/index.js +4 -2
- package/dist/hooks/usePointerSlider/index.js +5 -3
- package/dist/hooks/useRipple/index.js +24 -22
- package/dist/hooks/useRipple/ripple.css.js +8 -5
- package/dist/hooks/useToast/ToastContainer.css.js +5 -2
- package/dist/hooks/useToast/ToastContainer.js +7 -4
- package/dist/hooks/useToast/ToastProvider.js +53 -10
- package/dist/hooks/useToast/index.js +5 -2
- package/dist/index.js +79 -8
- package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.esm.js +51 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-10998315.esm.js +12 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/transformCss-0dba36bf.esm.js +955 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js +390 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.esm.js +20 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.esm.js +11 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.esm.js +22 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +37 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +111 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js +43 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js +190 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/vanilla-extract-sprinkles.esm.js +146 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js +423 -0
- package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js +28 -0
- package/dist/node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js +119 -0
- package/dist/node_modules/.pnpm/dedent@1.6.0_babel-plugin-macros@3.1.0/node_modules/dedent/dist/dedent.js +68 -0
- package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js +39 -0
- package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/utils.js +8 -0
- package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +142 -0
- package/dist/node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js +45 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js +30 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/align-justify.js +18 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js +14 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js +17 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js +28 -0
- package/dist/node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js +1385 -0
- package/dist/node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js +101 -0
- package/dist/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +86 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +1325 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +24 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +19 -0
- package/dist/styles/globalStyle.css.js +5 -2
- package/dist/styles/layers.css.js +6 -3
- package/dist/styles/overlay.css.js +7 -4
- package/dist/styles/sprinkles.css.js +16 -9
- package/dist/styles/sx.js +7 -2
- package/dist/themes/darkTheme.css.js +5 -2
- package/dist/themes/lightTheme.css.js +5 -2
- package/dist/themes/theme.css.js +7 -4
- package/dist/tokens/scale/color.js +5 -3
- package/dist/tokens/semantic/breakpoint.js +4 -6
- package/dist/tokens/semantic/color.js +3 -1
- package/dist/tokens/semantic/spacing.js +3 -1
- package/dist/tokens/semantic/typography.js +3 -1
- package/dist/utils/sprinklesUtils.js +8 -3
- package/dist/utils/styleUtils.css.js +10 -5
- package/package.json +10 -5
- package/dist/components/Accordion/Accordion.spec.js +0 -5
- package/dist/components/Accordion/index.js +0 -3
- package/dist/components/Box/Box.spec.js +0 -5
- package/dist/components/Button/Button.spec.js +0 -19
- package/dist/components/Card/Card.spec.js +0 -16
- package/dist/components/Card/index.js +0 -4
- package/dist/components/Chip/Chip.spec.js +0 -5
- package/dist/components/Chip/index.js +0 -1
- package/dist/components/Dialog/Dialog.spec.js +0 -16
- package/dist/components/Dialog/DialogFooter.css.js +0 -15
- package/dist/components/Dialog/index.js +0 -4
- package/dist/components/Navigation/Navigation.spec.js +0 -11
- package/dist/components/Navigation/index.js +0 -7
- package/dist/components/Range/Range.spec.js +0 -5
- package/dist/components/Range/index.js +0 -1
- package/dist/components/ScrollArea/ScrollArea.spec.js +0 -5
- package/dist/components/ScrollArea/index.js +0 -1
- package/dist/components/Select/Select.spec.js +0 -35
- package/dist/components/Select/index.js +0 -2
- package/dist/components/Skeleton/Skeleton.spec.js +0 -5
- package/dist/components/Table/Table.spec.js +0 -10
- package/dist/components/Table/index.js +0 -6
- package/dist/components/Tabs/Tabs.spec.js +0 -22
- package/dist/components/Tabs/index.js +0 -4
- package/dist/components/TextField/TextField.spec.js +0 -5
- package/dist/components/Toast/Toast.spec.js +0 -5
- package/dist/components/Typography/Typography.spec.js +0 -28
- package/dist/components/index.js +0 -18
- package/dist/contexts/index.js +0 -1
- package/dist/hooks/index.js +0 -5
- package/dist/hooks/useDialog/useDialog.spec.js +0 -53
- package/dist/styles/index.js +0 -4
- package/dist/tests/uiTest.js +0 -36
- package/dist/themes/index.js +0 -3
- package/dist/tokens/index.js +0 -5
- package/dist/types/index.js +0 -1
- package/dist/types/ui.types.js +0 -1
- package/dist/utils/index.js +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { style } from '@vanilla-extract/css';
|
|
2
|
-
import { recipe } from '@vanilla-extract/recipes';
|
|
3
|
-
import { theme } from '
|
|
4
|
-
|
|
1
|
+
import { style } from '../../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
|
|
2
|
+
import { recipe } from '../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js';
|
|
3
|
+
import { theme } from '../../themes/theme.css.js';
|
|
4
|
+
|
|
5
|
+
const children = style({
|
|
5
6
|
overflow: 'hidden',
|
|
6
7
|
textOverflow: 'ellipsis',
|
|
7
8
|
whiteSpace: 'nowrap',
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
+
const icon = recipe({
|
|
10
11
|
base: {
|
|
11
12
|
flexShrink: '0',
|
|
12
13
|
lineHeight: '0',
|
|
@@ -24,7 +25,7 @@ export const icon = recipe({
|
|
|
24
25
|
},
|
|
25
26
|
},
|
|
26
27
|
});
|
|
27
|
-
|
|
28
|
+
const selectTrigger = recipe({
|
|
28
29
|
base: {
|
|
29
30
|
display: 'flex',
|
|
30
31
|
alignItems: 'center',
|
|
@@ -57,3 +58,5 @@ export const selectTrigger = recipe({
|
|
|
57
58
|
},
|
|
58
59
|
},
|
|
59
60
|
});
|
|
61
|
+
|
|
62
|
+
export { children, icon, selectTrigger };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
2
|
import { useContext } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { SelectContext } from './SelectContext.js';
|
|
9
|
+
import { children, icon, selectTrigger } from './SelectTrigger.css.js';
|
|
10
|
+
import ChevronDown from '../../node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
11
|
+
|
|
12
|
+
const SelectTrigger = ({ children: children$1, className, variant, sx: propSx, }) => {
|
|
9
13
|
const selectContext = useContext(SelectContext);
|
|
10
14
|
if (!selectContext) {
|
|
11
15
|
throw new Error('SelectTrigger must be rendered within a Select.');
|
|
@@ -14,6 +18,7 @@ const SelectTrigger = ({ children, className, variant, sx: propSx, }) => {
|
|
|
14
18
|
const handleClick = () => {
|
|
15
19
|
dispatch({ type: 'TOGGLE' });
|
|
16
20
|
};
|
|
17
|
-
return (
|
|
21
|
+
return (jsxRuntimeExports.jsxs("div", { className: clsx(selectTrigger({ isActive: state.isActive, variant }), className, sx(propSx)), onClick: handleClick, children: [jsxRuntimeExports.jsx("span", { className: children, children: children$1 }), jsxRuntimeExports.jsx("span", { className: icon({ isActive: state.isActive }), children: jsxRuntimeExports.jsx(ChevronDown, { size: "1em", strokeWidth: "2px" }) })] }));
|
|
18
22
|
};
|
|
19
|
-
|
|
23
|
+
|
|
24
|
+
export { SelectTrigger as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { keyframes } from '@vanilla-extract/css';
|
|
2
|
-
import { styleWithLayer } from '
|
|
3
|
-
import { theme } from '
|
|
1
|
+
import { keyframes } from '../../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
|
|
2
|
+
import { styleWithLayer } from '../../utils/styleUtils.css.js';
|
|
3
|
+
import { theme } from '../../themes/theme.css.js';
|
|
4
|
+
|
|
4
5
|
const shimmer = keyframes({
|
|
5
6
|
'0%': {
|
|
6
7
|
backgroundPosition: '-300% 0',
|
|
@@ -9,7 +10,7 @@ const shimmer = keyframes({
|
|
|
9
10
|
backgroundPosition: '300% 0',
|
|
10
11
|
},
|
|
11
12
|
});
|
|
12
|
-
|
|
13
|
+
const skeleton = styleWithLayer({
|
|
13
14
|
display: 'block',
|
|
14
15
|
maxWidth: '100%',
|
|
15
16
|
borderRadius: theme.borderRadius,
|
|
@@ -17,3 +18,5 @@ export const skeleton = styleWithLayer({
|
|
|
17
18
|
backgroundSize: '300% 100%',
|
|
18
19
|
animation: `${shimmer} 5s linear 0s infinite`,
|
|
19
20
|
});
|
|
21
|
+
|
|
22
|
+
export { skeleton };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { clsx } from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { skeleton } from './Skeleton.css.js';
|
|
9
|
+
|
|
10
|
+
const Skeleton = forwardRef(({ className, width, height, style, sx: propSx, ...props }, ref) => {
|
|
11
|
+
return (jsxRuntimeExports.jsx("div", { ref: ref, className: clsx(skeleton, className, sx(propSx)), style: { ...style, width, height }, ...props }));
|
|
8
12
|
});
|
|
9
13
|
Skeleton.displayName = 'Skeleton';
|
|
14
|
+
|
|
15
|
+
export { Skeleton };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { styleWithLayer } from '
|
|
2
|
-
|
|
1
|
+
import { styleWithLayer } from '../../utils/styleUtils.css.js';
|
|
2
|
+
|
|
3
|
+
const table = styleWithLayer({
|
|
3
4
|
width: '100%',
|
|
4
5
|
tableLayout: 'fixed',
|
|
5
6
|
borderSpacing: '0',
|
|
6
7
|
});
|
|
7
|
-
|
|
8
|
+
const striped = styleWithLayer({});
|
|
9
|
+
|
|
10
|
+
export { striped, table };
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { striped, table } from './Table.css.js';
|
|
9
|
+
import * as Table_css from './Table.css.js';
|
|
10
|
+
export { Table_css as tableCss };
|
|
11
|
+
|
|
12
|
+
const Table = forwardRef(({ isStriped, className, sx: propSx, ...props }, ref) => {
|
|
13
|
+
return (jsxRuntimeExports.jsx("table", { ref: ref, className: clsx(table, isStriped && striped, sx(propSx), className), ...props }));
|
|
8
14
|
});
|
|
9
15
|
Table.displayName = 'Table';
|
|
10
|
-
|
|
16
|
+
|
|
17
|
+
export { Table };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
3
|
+
import '../../styles/layers.css.js';
|
|
4
|
+
import '../../styles/sprinkles.css.js';
|
|
5
|
+
import '../../styles/globalStyle.css.js';
|
|
6
|
+
import { sx } from '../../styles/sx.js';
|
|
7
|
+
|
|
8
|
+
const TableBody = ({ className, sx: propSx, ...props }) => {
|
|
9
|
+
return jsxRuntimeExports.jsx("tbody", { className: clsx(className, sx(propSx)), ...props });
|
|
6
10
|
};
|
|
11
|
+
|
|
12
|
+
export { TableBody };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { styleWithLayer } from '
|
|
2
|
-
import { theme } from '
|
|
3
|
-
import { striped } from './Table.css';
|
|
4
|
-
import { interactive } from './TableRow.css';
|
|
5
|
-
|
|
1
|
+
import { styleWithLayer } from '../../utils/styleUtils.css.js';
|
|
2
|
+
import { theme } from '../../themes/theme.css.js';
|
|
3
|
+
import { striped } from './Table.css.js';
|
|
4
|
+
import { interactive } from './TableRow.css.js';
|
|
5
|
+
|
|
6
|
+
const tableCell = styleWithLayer({
|
|
6
7
|
padding: '0.5em',
|
|
7
8
|
transition: 'background-color 0.1s ease, color 0.1s ease',
|
|
8
9
|
selectors: {
|
|
@@ -30,3 +31,5 @@ export const tableCell = styleWithLayer({
|
|
|
30
31
|
},
|
|
31
32
|
},
|
|
32
33
|
});
|
|
34
|
+
|
|
35
|
+
export { tableCell };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { tableCell } from './TableCell.css.js';
|
|
9
|
+
|
|
10
|
+
const TableCell = ({ width, textAlign, style, className, sx: propSx, ...props }) => {
|
|
11
|
+
return (jsxRuntimeExports.jsx("td", { style: { ...style, width, textAlign }, className: clsx(tableCell, className, sx(propSx)), ...props }));
|
|
8
12
|
};
|
|
13
|
+
|
|
14
|
+
export { TableCell };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { styleWithLayer } from '
|
|
2
|
-
import { theme } from '
|
|
3
|
-
|
|
1
|
+
import { styleWithLayer } from '../../utils/styleUtils.css.js';
|
|
2
|
+
import { theme } from '../../themes/theme.css.js';
|
|
3
|
+
|
|
4
|
+
const tableHead = styleWithLayer({
|
|
4
5
|
padding: '0.5em 0.625em',
|
|
5
6
|
color: `rgb(${theme.color['accent-foreground']})`,
|
|
6
7
|
fontSize: '0.9375em',
|
|
7
8
|
fontWeight: '500',
|
|
8
9
|
});
|
|
10
|
+
|
|
11
|
+
export { tableHead };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { tableHead } from './TableHead.css.js';
|
|
9
|
+
|
|
10
|
+
const TableHead = ({ width, textAlign, style, className, sx: propSx, ...props }) => {
|
|
11
|
+
return (jsxRuntimeExports.jsx("th", { style: { ...style, width, textAlign }, className: clsx(tableHead, className, sx(propSx)), ...props }));
|
|
8
12
|
};
|
|
13
|
+
|
|
14
|
+
export { TableHead };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
3
|
+
import '../../styles/layers.css.js';
|
|
4
|
+
import '../../styles/sprinkles.css.js';
|
|
5
|
+
import '../../styles/globalStyle.css.js';
|
|
6
|
+
import { sx } from '../../styles/sx.js';
|
|
7
|
+
|
|
8
|
+
const TableHeader = ({ className, sx: propSx, ...props }) => {
|
|
9
|
+
return jsxRuntimeExports.jsx("thead", { className: clsx(className, sx(propSx)), ...props });
|
|
6
10
|
};
|
|
11
|
+
|
|
12
|
+
export { TableHeader };
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
3
|
+
import '../../styles/layers.css.js';
|
|
4
|
+
import '../../styles/sprinkles.css.js';
|
|
5
|
+
import '../../styles/globalStyle.css.js';
|
|
6
|
+
import { sx } from '../../styles/sx.js';
|
|
7
|
+
import { interactive } from './TableRow.css.js';
|
|
8
|
+
|
|
9
|
+
const TableRow = ({ isInteractive = false, className, sx: propSx, ...props }) => {
|
|
10
|
+
return (jsxRuntimeExports.jsx("tr", { className: clsx(isInteractive && interactive, className, sx(propSx)), ...props }));
|
|
7
11
|
};
|
|
12
|
+
|
|
13
|
+
export { TableRow };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
3
2
|
import { forwardRef, useReducer } from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { tabsReducer, TabsContext } from './TabsProvider.js';
|
|
9
|
+
|
|
10
|
+
const Tabs = forwardRef(({ children, defaultValue, className, sx: propSx, ...props }, ref) => {
|
|
8
11
|
const [value, setValue] = useReducer(tabsReducer, defaultValue);
|
|
9
|
-
return (
|
|
12
|
+
return (jsxRuntimeExports.jsx(TabsContext.Provider, { value: { value, setValue }, children: jsxRuntimeExports.jsx("div", { ref: ref, className: clsx(className, sx(propSx)), style: { width: '100%' }, ...props, children: children }) }));
|
|
10
13
|
});
|
|
11
14
|
Tabs.displayName = 'Tabs';
|
|
15
|
+
|
|
16
|
+
export { Tabs };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
3
2
|
import { forwardRef, useContext } from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { TabsContext } from './TabsProvider.js';
|
|
9
|
+
|
|
10
|
+
const TabsContent = forwardRef(({ value, className, sx: propSx, ...props }, ref) => {
|
|
8
11
|
const tabsContext = useContext(TabsContext);
|
|
9
12
|
if (tabsContext === undefined) {
|
|
10
13
|
throw new Error('TabsContext must be used within a Tabs.');
|
|
@@ -12,6 +15,8 @@ export const TabsContent = forwardRef(({ value, className, sx: propSx, ...props
|
|
|
12
15
|
if (tabsContext.value !== value) {
|
|
13
16
|
return null;
|
|
14
17
|
}
|
|
15
|
-
return
|
|
18
|
+
return jsxRuntimeExports.jsx("div", { ref: ref, className: clsx(className, sx(propSx)), ...props });
|
|
16
19
|
});
|
|
17
20
|
TabsContent.displayName = 'TabsContent';
|
|
21
|
+
|
|
22
|
+
export { TabsContent };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { styleWithLayer } from '
|
|
2
|
-
import { theme } from '
|
|
3
|
-
|
|
1
|
+
import { styleWithLayer } from '../../utils/styleUtils.css.js';
|
|
2
|
+
import { theme } from '../../themes/theme.css.js';
|
|
3
|
+
|
|
4
|
+
const container = styleWithLayer({
|
|
4
5
|
display: 'flex',
|
|
5
6
|
height: '2.5em',
|
|
6
7
|
boxShadow: `inset 0 -0.125em 0 rgb(${theme.color.muted})`,
|
|
7
8
|
backgroundColor: `rgb(${theme.color.background})`,
|
|
8
9
|
});
|
|
10
|
+
|
|
11
|
+
export { container };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { container } from './TabsList.css.js';
|
|
9
|
+
|
|
10
|
+
const TabsList = forwardRef(({ children, className, sx: propSx, ...props }, ref) => {
|
|
11
|
+
return (jsxRuntimeExports.jsx("div", { ref: ref, className: clsx(className, container, sx(propSx)), ...props, children: children }));
|
|
8
12
|
});
|
|
9
13
|
TabsList.displayName = 'TabsList';
|
|
14
|
+
|
|
15
|
+
export { TabsList };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
'use client';
|
|
2
1
|
import { createContext } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
const TabsContext = createContext(undefined);
|
|
4
|
+
const tabsReducer = (_, value) => {
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
+
|
|
8
|
+
export { TabsContext, tabsReducer };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { recipeWithLayer } from '
|
|
2
|
-
import { theme } from '
|
|
3
|
-
|
|
1
|
+
import { recipeWithLayer } from '../../utils/styleUtils.css.js';
|
|
2
|
+
import { theme } from '../../themes/theme.css.js';
|
|
3
|
+
|
|
4
|
+
const container = recipeWithLayer({
|
|
4
5
|
base: {
|
|
5
6
|
overflow: 'hidden',
|
|
6
7
|
height: '100%',
|
|
@@ -27,3 +28,5 @@ export const container = recipeWithLayer({
|
|
|
27
28
|
},
|
|
28
29
|
},
|
|
29
30
|
});
|
|
31
|
+
|
|
32
|
+
export { container };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
3
2
|
import { forwardRef, useContext } from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { TabsContext } from './TabsProvider.js';
|
|
9
|
+
import { container } from './TabsTrigger.css.js';
|
|
10
|
+
|
|
11
|
+
const TabsTrigger = forwardRef(({ children, value, className, sx: propSx, ...props }, ref) => {
|
|
9
12
|
const tabsContext = useContext(TabsContext);
|
|
10
13
|
if (tabsContext === undefined) {
|
|
11
14
|
throw new Error('TabsTrigger must be used within a Tabs.');
|
|
@@ -14,6 +17,8 @@ export const TabsTrigger = forwardRef(({ children, value, className, sx: propSx,
|
|
|
14
17
|
const handleClick = () => {
|
|
15
18
|
tabsContext.setValue(value);
|
|
16
19
|
};
|
|
17
|
-
return (
|
|
20
|
+
return (jsxRuntimeExports.jsx("button", { ref: ref, className: clsx(className, container({ isSelected }), sx(propSx)), onClick: handleClick, ...props, children: children }));
|
|
18
21
|
});
|
|
19
22
|
TabsTrigger.displayName = 'TabsTrigger';
|
|
23
|
+
|
|
24
|
+
export { TabsTrigger };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { createVar } from '@vanilla-extract/css';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { createVar } from '../../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
|
|
2
|
+
import { styleWithLayer, recipeWithLayer } from '../../utils/styleUtils.css.js';
|
|
3
|
+
import { SCALE_COLOR } from '../../tokens/scale/color.js';
|
|
4
|
+
import { theme } from '../../themes/theme.css.js';
|
|
5
|
+
import { semanticColor } from '../../tokens/semantic/color.js';
|
|
6
|
+
|
|
6
7
|
const backgroundVar = createVar();
|
|
7
8
|
const semanticColors = semanticColor.reduce((prev, color) => ({
|
|
8
9
|
...prev,
|
|
@@ -20,7 +21,7 @@ const scaleColors = SCALE_COLOR.reduce((prev, value) => ({
|
|
|
20
21
|
},
|
|
21
22
|
}),
|
|
22
23
|
}), {});
|
|
23
|
-
|
|
24
|
+
const textField = recipeWithLayer({
|
|
24
25
|
base: {
|
|
25
26
|
padding: '0.75em 0.5em',
|
|
26
27
|
border: `1px solid`,
|
|
@@ -57,3 +58,5 @@ export const textField = recipeWithLayer({
|
|
|
57
58
|
},
|
|
58
59
|
},
|
|
59
60
|
});
|
|
61
|
+
|
|
62
|
+
export { textField };
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { clsx } from 'clsx';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
4
|
+
import '../../styles/layers.css.js';
|
|
5
|
+
import '../../styles/sprinkles.css.js';
|
|
6
|
+
import '../../styles/globalStyle.css.js';
|
|
7
|
+
import { sx } from '../../styles/sx.js';
|
|
8
|
+
import { textField } from './TextField.css.js';
|
|
9
|
+
import * as TextField_css from './TextField.css.js';
|
|
10
|
+
export { TextField_css as textFieldCss };
|
|
11
|
+
|
|
12
|
+
const TextField = forwardRef(({ className, type = 'text', size = 'md', color = 'primary', sx: propSx, ...props }, ref) => {
|
|
13
|
+
return (jsxRuntimeExports.jsx("input", { ref: ref, type: type, className: clsx(className, textField({ size, color }), sx(propSx)), ...props }));
|
|
8
14
|
});
|
|
9
15
|
TextField.displayName = 'TextField';
|
|
10
|
-
|
|
16
|
+
|
|
17
|
+
export { TextField };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createVar, keyframes } from '@vanilla-extract/css';
|
|
2
|
-
import {
|
|
3
|
-
import { theme } from '
|
|
4
|
-
import { semanticColor } from '
|
|
1
|
+
import { createVar, keyframes } from '../../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
|
|
2
|
+
import { styleWithLayer, recipeWithLayer } from '../../utils/styleUtils.css.js';
|
|
3
|
+
import { theme } from '../../themes/theme.css.js';
|
|
4
|
+
import { semanticColor } from '../../tokens/semantic/color.js';
|
|
5
|
+
|
|
5
6
|
const colorVar = createVar();
|
|
6
7
|
const foregroundVar = createVar();
|
|
7
8
|
const semanticColors = semanticColor.reduce((prev, color) => ({
|
|
@@ -21,7 +22,7 @@ const fill = keyframes({
|
|
|
21
22
|
transform: 'scaleX(1)',
|
|
22
23
|
},
|
|
23
24
|
});
|
|
24
|
-
|
|
25
|
+
const progress = recipeWithLayer({
|
|
25
26
|
base: {
|
|
26
27
|
position: 'absolute',
|
|
27
28
|
inset: '0',
|
|
@@ -43,7 +44,7 @@ export const progress = recipeWithLayer({
|
|
|
43
44
|
},
|
|
44
45
|
},
|
|
45
46
|
});
|
|
46
|
-
|
|
47
|
+
const toast = recipeWithLayer({
|
|
47
48
|
base: {
|
|
48
49
|
position: 'relative',
|
|
49
50
|
overflow: 'hidden',
|
|
@@ -60,3 +61,5 @@ export const toast = recipeWithLayer({
|
|
|
60
61
|
},
|
|
61
62
|
},
|
|
62
63
|
});
|
|
64
|
+
|
|
65
|
+
export { progress, toast };
|