@nation-a/ui 0.15.3 → 0.16.1

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.
@@ -1466,6 +1466,26 @@ html:not(#\#),body:not(#\#) {
1466
1466
  color: var(--colors-content-neutral-subtlest);
1467
1467
  }
1468
1468
 
1469
+ .w_500px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1470
+ width: 500px;
1471
+ }
1472
+
1473
+ .py_2:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1474
+ padding-block: var(--spacing-2);
1475
+ }
1476
+
1477
+ .trs_background-color_0\.1s_ease-in-out:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1478
+ transition: background-color 0.1s ease-in-out;
1479
+ }
1480
+
1481
+ .h_52px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1482
+ height: 52px;
1483
+ }
1484
+
1485
+ .h_68px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1486
+ height: 68px;
1487
+ }
1488
+
1469
1489
  .z_10:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1470
1490
  z-index: 10;
1471
1491
  }
@@ -1570,10 +1590,6 @@ html:not(#\#),body:not(#\#) {
1570
1590
  max-width: 500px;
1571
1591
  }
1572
1592
 
1573
- .w_500px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1574
- width: 500px;
1575
- }
1576
-
1577
1593
  .gap_24px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1578
1594
  gap: 24px;
1579
1595
  }
@@ -1594,10 +1610,6 @@ html:not(#\#),body:not(#\#) {
1594
1610
  box-shadow: 0px 8px 12px 0px var(--colors-semantic-shadow-overlay, rgba(0, 0, 0, 0.08));
1595
1611
  }
1596
1612
 
1597
- .py_2:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1598
- padding-block: var(--spacing-2);
1599
- }
1600
-
1601
1613
  .trs_all:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1602
1614
  transition-property: var(--transition-prop, all);
1603
1615
  transition-timing-function: var(--transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
@@ -2160,12 +2172,12 @@ html:not(#\#),body:not(#\#) {
2160
2172
  margin-top: calc(var(--spacing-0\.5) * -1);
2161
2173
  }
2162
2174
 
2163
- .pt_2:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2164
- padding-top: var(--spacing-2);
2175
+ .pl_12:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2176
+ padding-left: var(--spacing-12);
2165
2177
  }
2166
2178
 
2167
- .pb_8:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2168
- padding-bottom: var(--spacing-8);
2179
+ .pr_2:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2180
+ padding-right: var(--spacing-2);
2169
2181
  }
2170
2182
 
2171
2183
  .bd-w_2px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
@@ -2422,6 +2434,14 @@ html:not(#\#),body:not(#\#) {
2422
2434
  background: var(--colors-background-neutral-disabled);
2423
2435
  }
2424
2436
 
2437
+ .\[\&_\.label\]\:c_content\.neutral\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .label {
2438
+ color: var(--colors-content-neutral-default);
2439
+ }
2440
+
2441
+ .\[\&_\.sub-label\]\:c_content\.neutral\.subtlest:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .sub-label {
2442
+ color: var(--colors-content-neutral-subtlest);
2443
+ }
2444
+
2425
2445
  .selected\:c_content\.neutral\.default:is([aria-selected=true], [data-selected]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2426
2446
  color: var(--colors-content-neutral-default);
2427
2447
  }
@@ -2918,6 +2938,14 @@ html:not(#\#),body:not(#\#) {
2918
2938
  color: var(--colors-content-neutral-disabled);
2919
2939
  }
2920
2940
 
2941
+ .disabled\:\[\&_\.label\]\:c_content\.neutral\.disabled:is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .label {
2942
+ color: var(--colors-content-neutral-disabled);
2943
+ }
2944
+
2945
+ .disabled\:\[\&_\.sub-label\]\:c_content\.neutral\.disabled:is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) .sub-label {
2946
+ color: var(--colors-content-neutral-disabled);
2947
+ }
2948
+
2921
2949
  .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(#\#) {
2922
2950
  background: var(--colors-content-neutral-disabled);
2923
2951
  }
@@ -3046,6 +3074,12 @@ html:not(#\#),body:not(#\#) {
3046
3074
  }
3047
3075
  }
3048
3076
 
3077
+ @media (hover: hover) and (pointer: fine) {
3078
+ .disabled\:hover\:bg_transparent:is(:hover, [data-hover]):is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
3079
+ background: transparent;
3080
+ }
3081
+ }
3082
+
3049
3083
  @media (hover: hover) and (pointer: fine) {
3050
3084
  .disabled\:hover\:bg_initial:is(:hover, [data-hover]):is(:disabled, [disabled], [data-disabled]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
3051
3085
  background: initial;
@@ -11,6 +11,7 @@ export type InputProps = Assign<HTMLStyledProps<'input'>, InputVariantProps> & {
11
11
  startAdornment?: ReactNode;
12
12
  endAdornment?: ReactNode;
13
13
  removeBorder?: boolean;
14
+ fontSize?: number;
14
15
  };
15
16
  declare const _default: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>>;
16
17
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as List, ListProps } from '.';
3
+ declare const meta: Meta<typeof List>;
4
+ export default meta;
5
+ type Story = StoryObj<ListProps>;
6
+ export declare const Basic: Story;
@@ -0,0 +1,26 @@
1
+ import { ListVariantProps } from './list.recipe';
2
+ import { ComponentProps, HTMLStyledProps } from '../../../styled-system/types';
3
+ import { Assign } from '@ark-ui/react';
4
+ declare const Root: (props: Omit<HTMLStyledProps<"ul">, never> & {
5
+ size?: "sm" | "lg" | undefined;
6
+ density?: 1 | 2 | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export type ListProps = ComponentProps<typeof Root>;
9
+ export type ListItemProps = Assign<HTMLStyledProps<'li'>, ListVariantProps> & {
10
+ startAdornment?: React.ReactNode;
11
+ endAdornment?: React.ReactNode;
12
+ label?: string;
13
+ subLabel?: string;
14
+ disabled?: boolean;
15
+ };
16
+ declare const List: ((props: Omit<HTMLStyledProps<"ul">, never> & {
17
+ size?: "sm" | "lg" | undefined;
18
+ density?: 1 | 2 | undefined;
19
+ }) => import("react/jsx-runtime").JSX.Element) & {
20
+ Root: (props: Omit<HTMLStyledProps<"ul">, never> & {
21
+ size?: "sm" | "lg" | undefined;
22
+ density?: 1 | 2 | undefined;
23
+ }) => import("react/jsx-runtime").JSX.Element;
24
+ Item: import('react').ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & import('react').RefAttributes<HTMLStyledProps<"li">>>;
25
+ };
26
+ export default List;
@@ -0,0 +1,29 @@
1
+ import { RecipeVariantProps } from '../../../styled-system/css';
2
+ export type ListVariantProps = RecipeVariantProps<typeof listRecipe>;
3
+ export declare const listRecipe: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "root", {
4
+ size: {
5
+ sm: {
6
+ item: {
7
+ h: "52px";
8
+ };
9
+ };
10
+ lg: {
11
+ item: {
12
+ h: "68px";
13
+ };
14
+ };
15
+ };
16
+ density: {
17
+ 1: {
18
+ item: {
19
+ px: number;
20
+ };
21
+ };
22
+ 2: {
23
+ item: {
24
+ pl: number;
25
+ pr: number;
26
+ };
27
+ };
28
+ };
29
+ }>;
@@ -2,21 +2,29 @@ import { default as React } from 'react';
2
2
  import { ComponentProps } from '../../../styled-system/types';
3
3
  import { Tabs as ArkTabs } from '@ark-ui/react/tabs';
4
4
  import { Assign } from '@ark-ui/react';
5
- export interface TabsVariantProps {
6
- variant?: 'line' | 'enclosed';
7
- fitted?: boolean;
8
- bottomLine?: boolean;
9
- shadow?: boolean;
10
- }
11
- type RootProps = Assign<ArkTabs.RootProps, TabsVariantProps>;
12
- declare const Root: (props: RootProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Root: (props: Omit<ArkTabs.RootProps, never> & {
6
+ variant?: "line" | "enclosed" | undefined;
7
+ fitted?: boolean | undefined;
8
+ bottomLine?: boolean | undefined;
9
+ shadow?: boolean | undefined;
10
+ }) => import("react/jsx-runtime").JSX.Element;
13
11
  export type TabsProps = ComponentProps<typeof Root>;
14
12
  export type TabsListProps = Assign<React.HTMLAttributes<HTMLDivElement>, ArkTabs.ListBaseProps>;
15
13
  export type TabsTriggerProps = Assign<React.HTMLAttributes<HTMLButtonElement>, ArkTabs.TriggerBaseProps>;
16
14
  export type TabsContentProps = Assign<React.HTMLAttributes<HTMLDivElement>, ArkTabs.ContentBaseProps>;
17
15
  export type TabsIndicatorProps = Assign<React.HTMLAttributes<HTMLDivElement>, ArkTabs.IndicatorBaseProps>;
18
- declare const Tabs: ((props: RootProps) => import("react/jsx-runtime").JSX.Element) & {
19
- Root: (props: RootProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const Tabs: ((props: Omit<ArkTabs.RootProps, never> & {
17
+ variant?: "line" | "enclosed" | undefined;
18
+ fitted?: boolean | undefined;
19
+ bottomLine?: boolean | undefined;
20
+ shadow?: boolean | undefined;
21
+ }) => import("react/jsx-runtime").JSX.Element) & {
22
+ Root: (props: Omit<ArkTabs.RootProps, never> & {
23
+ variant?: "line" | "enclosed" | undefined;
24
+ fitted?: boolean | undefined;
25
+ bottomLine?: boolean | undefined;
26
+ shadow?: boolean | undefined;
27
+ }) => import("react/jsx-runtime").JSX.Element;
20
28
  List: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "asChild"> & ArkTabs.ListBaseProps & React.RefAttributes<HTMLDivElement>>;
21
29
  Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLButtonElement>, keyof ArkTabs.TriggerBaseProps> & ArkTabs.TriggerBaseProps & React.RefAttributes<HTMLButtonElement>>;
22
30
  Content: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof ArkTabs.ContentBaseProps> & ArkTabs.ContentBaseProps & React.RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nation-a/ui",
3
- "version": "0.15.3",
3
+ "version": "0.16.1",
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/tokens": "0.2.3",
24
- "@nation-a/icons": "0.2.0"
23
+ "@nation-a/icons": "0.2.0",
24
+ "@nation-a/tokens": "0.2.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@chromatic-com/storybook": "^3",