@nation-a/ui 0.13.1 → 0.14.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.
@@ -1530,6 +1530,26 @@ html:not(#\#),body:not(#\#) {
1530
1530
  height: var(--sizes-24);
1531
1531
  }
1532
1532
 
1533
+ .bg_background\.neutral\.selected:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1534
+ background: var(--colors-background-neutral-selected);
1535
+ }
1536
+
1537
+ .p_1:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1538
+ padding: var(--spacing-1);
1539
+ }
1540
+
1541
+ .w_14:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1542
+ width: var(--sizes-14);
1543
+ }
1544
+
1545
+ .bg_content\.neutral\.bold:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1546
+ background: var(--colors-content-neutral-bold);
1547
+ }
1548
+
1549
+ .bx-sh_xs:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1550
+ box-shadow: xs;
1551
+ }
1552
+
1533
1553
  .max-w_500px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1534
1554
  max-width: 500px;
1535
1555
  }
@@ -1554,10 +1574,6 @@ html:not(#\#),body:not(#\#) {
1554
1574
  gap: var(--spacing-16);
1555
1575
  }
1556
1576
 
1557
- .p_1:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1558
- padding: var(--spacing-1);
1559
- }
1560
-
1561
1577
  .bx-sh_0px_8px_12px_0px_var\(--colors-semantic-shadow-overlay\,_rgba\(0\,_0\,_0\,_0\.08\)\):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1562
1578
  box-shadow: 0px 8px 12px 0px var(--colors-semantic-shadow-overlay, rgba(0, 0, 0, 0.08));
1563
1579
  }
@@ -1592,10 +1608,6 @@ html:not(#\#),body:not(#\#) {
1592
1608
  border-radius: var(--radii-xs);
1593
1609
  }
1594
1610
 
1595
- .bg_content\.neutral\.bold:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1596
- background: var(--colors-content-neutral-bold);
1597
- }
1598
-
1599
1611
  .d_none:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1600
1612
  display: none;
1601
1613
  }
@@ -1628,10 +1640,6 @@ html:not(#\#),body:not(#\#) {
1628
1640
  color: var(--colors-content-static-black-default);
1629
1641
  }
1630
1642
 
1631
- .bg_background\.neutral\.selected:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1632
- background: var(--colors-background-neutral-selected);
1633
- }
1634
-
1635
1643
  .bg_background\.static\.blackAlpha\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1636
1644
  background: var(--colors-background-static-black-alpha-default);
1637
1645
  }
@@ -2152,6 +2160,15 @@ html:not(#\#),body:not(#\#) {
2152
2160
  padding-bottom: var(--spacing-8);
2153
2161
  }
2154
2162
 
2163
+ .bd-w_2px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2164
+ border-width: 2px;
2165
+ }
2166
+
2167
+ .trs-prop_background:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2168
+ --transition-prop: background;
2169
+ transition-property: background;
2170
+ }
2171
+
2155
2172
  .bg-c_background\.neutral\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2156
2173
  background-color: var(--colors-background-neutral-default);
2157
2174
  }
@@ -2168,6 +2185,11 @@ html:not(#\#),body:not(#\#) {
2168
2185
  font-size: 12px;
2169
2186
  }
2170
2187
 
2188
+ .trs-prop_transform\,_background:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2189
+ --transition-prop: transform, background;
2190
+ transition-property: transform, background;
2191
+ }
2192
+
2171
2193
  .ov-x_auto:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2172
2194
  overflow-x: auto;
2173
2195
  }
@@ -2400,6 +2422,18 @@ html:not(#\#),body:not(#\#) {
2400
2422
  background: var(--colors-background-neutral-default);
2401
2423
  }
2402
2424
 
2425
+ .vertical\:gap_4[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2426
+ gap: var(--spacing-4);
2427
+ }
2428
+
2429
+ .horizontal\:gap_6[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2430
+ gap: var(--spacing-6);
2431
+ }
2432
+
2433
+ .checked\:ring-o_-4px:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2434
+ outline-offset: -4px;
2435
+ }
2436
+
2403
2437
  .\[\&\[data-placeholder\]\]\:c_content\.neutral\.subtlest[data-placeholder]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2404
2438
  color: var(--colors-content-neutral-subtlest);
2405
2439
  }
@@ -2408,6 +2442,46 @@ html:not(#\#),body:not(#\#) {
2408
2442
  stroke: currentColor;
2409
2443
  }
2410
2444
 
2445
+ .checked\:bg_background\.neutralInverse\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2446
+ background: var(--colors-background-neutral-inverse-selected);
2447
+ }
2448
+
2449
+ .disabled\:bg_background\.neutral\.disabled\!:is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#) {
2450
+ background: var(--colors-background-neutral-disabled) !important;
2451
+ }
2452
+
2453
+ .checked\:bg_background\.neuroidSecondary\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2454
+ background: var(--colors-background-neuroid-secondary-selected);
2455
+ }
2456
+
2457
+ .checked\:bg_background\.heydPrimary\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2458
+ background: var(--colors-background-heyd-primary-selected);
2459
+ }
2460
+
2461
+ .checked\:bg_background\.heybeePrimary\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2462
+ background: var(--colors-background-heybee-primary-selected);
2463
+ }
2464
+
2465
+ .checked\:bg_background\.zoltarinaPrimary\.selected:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2466
+ background: var(--colors-background-zoltarina-primary-selected);
2467
+ }
2468
+
2469
+ .checked\:trf_translateX\(100\%\):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2470
+ transform: translateX(100%);
2471
+ }
2472
+
2473
+ .disabled\:bg_content\.neutral\.disabled\!:is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#) {
2474
+ background: var(--colors-content-neutral-disabled) !important;
2475
+ }
2476
+
2477
+ .checked\:bg_content\.neutralInverse\.bold:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2478
+ background: var(--colors-content-neutral-inverse-bold);
2479
+ }
2480
+
2481
+ .checked\:bg_content\.static\.white\.bold:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2482
+ background: var(--colors-content-static-white-bold);
2483
+ }
2484
+
2411
2485
  .\[\&\:\:-webkit-scrollbar\]\:d_none:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::-webkit-scrollbar {
2412
2486
  display: none;
2413
2487
  }
@@ -2768,6 +2842,30 @@ html:not(#\#),body:not(#\#) {
2768
2842
  border-color: var(--colors-border-neutral-disabled);
2769
2843
  }
2770
2844
 
2845
+ .vertical\:flex-d_column[data-orientation=vertical]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2846
+ flex-direction: column;
2847
+ }
2848
+
2849
+ .horizontal\:flex-d_row[data-orientation=horizontal]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2850
+ flex-direction: row;
2851
+ }
2852
+
2853
+ .checked\:bd-c_content\.neutral\.bold:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2854
+ border-color: var(--colors-content-neutral-bold);
2855
+ }
2856
+
2857
+ .checked\:ring-c_content\.neutral\.default_inverse:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2858
+ outline-color: var(--colors-content-neutral-default_inverse);
2859
+ }
2860
+
2861
+ .checked\:outline-style_solid:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2862
+ outline-style: solid;
2863
+ }
2864
+
2865
+ .checked\:ring-w_2px:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2866
+ outline-width: 2px;
2867
+ }
2868
+
2771
2869
  .focusWithin\:bd-c_border\.neutral\.default:focus-within:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2772
2870
  border-color: var(--colors-border-neutral-default);
2773
2871
  }
@@ -2812,6 +2910,10 @@ html:not(#\#),body:not(#\#) {
2812
2910
  color: var(--colors-content-neutral-disabled);
2813
2911
  }
2814
2912
 
2913
+ .checked\:disabled\:bg_content\.neutral\.disabled:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2914
+ background: var(--colors-content-neutral-disabled);
2915
+ }
2916
+
2815
2917
  .\[\&\:has\(\+_\:focus-visible\)\]\:checked\:ring-c_border\.neutral\.default:has(+ :focus-visible):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2816
2918
  outline-color: var(--colors-border-neutral-default);
2817
2919
  }
@@ -2922,4 +3024,10 @@ html:not(#\#),body:not(#\#) {
2922
3024
  .indeterminate\:hover\:bg_content\.neutral\.subtle:is(:hover, [data-hover]):is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2923
3025
  background: var(--colors-content-neutral-subtle);
2924
3026
  }
3027
+ }
3028
+
3029
+ @media (hover: hover) and (pointer: fine) {
3030
+ .disabled\:hover\:bg_initial:is(:hover, [data-hover]):is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
3031
+ background: initial;
3032
+ }
2925
3033
  }
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { Checkbox } from '.';
2
+ import { default as Checkbox } from '.';
3
3
  declare const meta: Meta<typeof Checkbox>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -0,0 +1,4 @@
1
+ import * as StyledCheckbox from './checkbox.styled';
2
+ export type CheckboxProps = StyledCheckbox.RootProps;
3
+ declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<StyledCheckbox.RootProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
4
+ export default Checkbox;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RadioGroup } from './index';
3
+ declare const meta: Meta<typeof RadioGroup.Root>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const DefaultRadioGroup: Story;
7
+ export declare const DisabledRadioGroup: Story;
@@ -0,0 +1,14 @@
1
+ import { Assign } from '@ark-ui/react';
2
+ import { RadioGroup as ArkRadioGroup } from '@ark-ui/react/radio-group';
3
+ import { ComponentProps, HTMLStyledProps } from 'styled-system/types';
4
+ export type RootProviderProps = ComponentProps<typeof RootProvider>;
5
+ declare const RootProvider: import('react').ForwardRefExoticComponent<Omit<Omit<Assign<HTMLStyledProps<"div">, ArkRadioGroup.RootProviderBaseProps>, never> & {}, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
+ export type RadioGroupProps = ComponentProps<typeof Root>;
7
+ declare const Root: import('react').ForwardRefExoticComponent<Omit<Omit<Assign<HTMLStyledProps<"div">, ArkRadioGroup.RootBaseProps>, never> & {}, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
+ declare const RadioGroup: {
9
+ Root: import('react').ForwardRefExoticComponent<Omit<Omit<Assign<HTMLStyledProps<"div">, ArkRadioGroup.RootBaseProps>, never> & {}, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
10
+ Item: import('react').ForwardRefExoticComponent<Omit<Assign<HTMLStyledProps<"label">, ArkRadioGroup.ItemBaseProps>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
11
+ Label: import('react').ForwardRefExoticComponent<Omit<Assign<HTMLStyledProps<"label">, ArkRadioGroup.LabelBaseProps>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
12
+ Context: (props: import('@ark-ui/react').RadioGroupContextProps) => import('react').ReactNode;
13
+ };
14
+ export default RadioGroup;
@@ -0,0 +1,3 @@
1
+ import { RecipeVariantProps } from '../../../styled-system/css';
2
+ export type RadioGroupRecipeVariantProps = RecipeVariantProps<typeof radioGroupRecipe>;
3
+ export declare const radioGroupRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "indicator" | "item" | "root" | "itemText" | "itemControl", import('../../../styled-system/types').SlotRecipeVariantRecord<"label" | "indicator" | "item" | "root" | "itemText" | "itemControl">>;
@@ -2,6 +2,7 @@ import { Select as ArkSelect } from '@ark-ui/react/select';
2
2
  import { HTMLStyledProps } from '../../../styled-system/jsx';
3
3
  import { Assign } from '@ark-ui/react';
4
4
  import { ComponentProps } from 'react';
5
+ export { createListCollection } from '@ark-ui/react/select';
5
6
  export type SelectProps = ComponentProps<typeof Root>;
6
7
  type RootProps<T> = Assign<HTMLStyledProps<'div'>, {
7
8
  collection: any;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Switch } from './index';
3
+ declare const meta: Meta<typeof Switch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const DefaultSwitch: Story;
7
+ export declare const DisabledSwitches: Story;
8
+ export declare const SwitchSizes: Story;
9
+ export declare const SwitchColors: Story;
@@ -0,0 +1,4 @@
1
+ import * as StyledSwitch from './switch.styled';
2
+ export type SwitchProps = StyledSwitch.RootProps;
3
+ declare const Switch: import('react').ForwardRefExoticComponent<Omit<StyledSwitch.RootProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
4
+ export default Switch;
@@ -0,0 +1,83 @@
1
+ import { RecipeVariantProps } from '../../../styled-system/css';
2
+ export type SwitchRecipeVariantProps = RecipeVariantProps<typeof switchRecipe>;
3
+ export declare const switchRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "control" | "thumb", {
4
+ size: {
5
+ md: {
6
+ control: {
7
+ width: number;
8
+ p: number;
9
+ };
10
+ thumb: {
11
+ width: number;
12
+ height: number;
13
+ };
14
+ };
15
+ lg: {
16
+ control: {
17
+ width: number;
18
+ p: number;
19
+ };
20
+ thumb: {
21
+ width: number;
22
+ height: number;
23
+ };
24
+ };
25
+ };
26
+ color: {
27
+ neutral: {
28
+ thumb: {
29
+ _checked: {
30
+ background: "content.neutralInverse.bold";
31
+ };
32
+ };
33
+ };
34
+ neuroid: {
35
+ control: {
36
+ _checked: {
37
+ background: "background.neuroidSecondary.selected";
38
+ };
39
+ };
40
+ thumb: {
41
+ _checked: {
42
+ background: "content.static.white.bold";
43
+ };
44
+ };
45
+ };
46
+ heyd: {
47
+ control: {
48
+ _checked: {
49
+ background: "background.heydPrimary.selected";
50
+ };
51
+ };
52
+ thumb: {
53
+ _checked: {
54
+ background: "content.static.white.bold";
55
+ };
56
+ };
57
+ };
58
+ heybee: {
59
+ control: {
60
+ _checked: {
61
+ background: "background.heybeePrimary.selected";
62
+ };
63
+ };
64
+ thumb: {
65
+ _checked: {
66
+ background: "content.static.white.bold";
67
+ };
68
+ };
69
+ };
70
+ zoltarina: {
71
+ control: {
72
+ _checked: {
73
+ background: "background.zoltarinaPrimary.selected";
74
+ };
75
+ };
76
+ thumb: {
77
+ _checked: {
78
+ background: "content.static.white.bold";
79
+ };
80
+ };
81
+ };
82
+ };
83
+ }>;
@@ -0,0 +1,17 @@
1
+ import { Assign } from '@ark-ui/react';
2
+ import { Switch } from '@ark-ui/react/switch';
3
+ import { ComponentProps, HTMLStyledProps } from 'styled-system/types';
4
+ export type RootProviderProps = ComponentProps<typeof RootProvider>;
5
+ export declare const RootProvider: import('react').ForwardRefExoticComponent<Omit<Omit<Assign<HTMLStyledProps<"label">, Switch.RootProviderBaseProps>, never> & {
6
+ size?: "md" | "lg" | undefined;
7
+ color?: "neutral" | "neuroid" | "heyd" | "heybee" | "zoltarina" | undefined;
8
+ }, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
9
+ export type RootProps = ComponentProps<typeof Root>;
10
+ export declare const Root: import('react').ForwardRefExoticComponent<Omit<Omit<Assign<HTMLStyledProps<"label">, Switch.RootBaseProps>, never> & {
11
+ size?: "md" | "lg" | undefined;
12
+ color?: "neutral" | "neuroid" | "heyd" | "heybee" | "zoltarina" | undefined;
13
+ }, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
14
+ export declare const Control: import('react').ForwardRefExoticComponent<Omit<Assign<HTMLStyledProps<"span">, Switch.ControlBaseProps>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
15
+ export declare const Label: import('react').ForwardRefExoticComponent<Omit<Assign<HTMLStyledProps<"span">, Switch.LabelBaseProps>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
16
+ export declare const Thumb: import('react').ForwardRefExoticComponent<Omit<Assign<HTMLStyledProps<"span">, Switch.ThumbBaseProps>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
17
+ export { SwitchContext as Context, SwitchHiddenInput as HiddenInput } from '@ark-ui/react/switch';
@@ -11,5 +11,8 @@ export { default as Input, type InputProps } from './Input';
11
11
  export { default as TextArea, type TextAreaProps } from './TextArea';
12
12
  export { default as Tabs, type TabsProps } from './Tabs';
13
13
  export { default as Toast, type ToastProps } from './Toast';
14
- export { default as Select, type SelectProps } from './Select';
14
+ export { default as Select, type SelectProps, createListCollection } from './Select';
15
+ export { default as RadioGroup, type RadioGroupProps } from './RadioGroup';
16
+ export { default as Checkbox, type CheckboxProps } from './Checkbox';
17
+ export { default as Switch, type SwitchProps } from './Switch';
15
18
  export * from './Layout';
@@ -1,4 +1,3 @@
1
1
  export * from './components';
2
2
  export * from './theme';
3
- export * from './contexts';
4
3
  export * from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nation-a/ui",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/index.cjs",
@@ -20,8 +20,8 @@
20
20
  "react-dom": "^18.3.1",
21
21
  "react-hot-toast": "^2.5.2",
22
22
  "react-lottie": "^1.2.10",
23
- "@nation-a/icons": "0.2.0",
24
- "@nation-a/tokens": "0.2.2"
23
+ "@nation-a/tokens": "0.2.3",
24
+ "@nation-a/icons": "0.2.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@chromatic-com/storybook": "^3",
@@ -1,4 +0,0 @@
1
- import * as StyledCheckbox from './checkbox.styled';
2
- export interface CheckboxProps extends StyledCheckbox.RootProps {
3
- }
4
- export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
@@ -1 +0,0 @@
1
- export {};