@nation-a/ui 0.16.4 → 0.16.5

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/index.js CHANGED
@@ -10178,16 +10178,16 @@ const dialogRecipe = sva({
10178
10178
  }
10179
10179
  }
10180
10180
  });
10181
- const { withRootProvider: withRootProvider$3, withContext: withContext$6 } = createStyleContext(dialogRecipe);
10182
- const Root$7 = withRootProvider$3(DialogRoot);
10183
- const Backdrop$1 = withContext$6(DialogBackdrop, "backdrop");
10184
- const Trigger$3 = withContext$6(DialogTrigger, "trigger");
10185
- const Content$4 = withContext$6(DialogContent, "content");
10186
- const Title = withContext$6(DialogTitle, "title");
10187
- const Description$2 = withContext$6(DialogDescription, "description");
10188
- const Positioner = withContext$6(DialogPositioner, "positioner");
10189
- const Header$1 = withContext$6(ark.header, "header");
10190
- const Footer = withContext$6(
10181
+ const { withRootProvider: withRootProvider$4, withContext: withContext$7 } = createStyleContext(dialogRecipe);
10182
+ const Root$8 = withRootProvider$4(DialogRoot);
10183
+ const Backdrop$1 = withContext$7(DialogBackdrop, "backdrop");
10184
+ const Trigger$3 = withContext$7(DialogTrigger, "trigger");
10185
+ const Content$4 = withContext$7(DialogContent, "content");
10186
+ const Title = withContext$7(DialogTitle, "title");
10187
+ const Description$2 = withContext$7(DialogDescription, "description");
10188
+ const Positioner = withContext$7(DialogPositioner, "positioner");
10189
+ const Header$1 = withContext$7(ark.header, "header");
10190
+ const Footer = withContext$7(
10191
10191
  ({ orientation = "horizontal", className, ...props }) => {
10192
10192
  return /* @__PURE__ */ jsx(
10193
10193
  ark.footer,
@@ -10205,10 +10205,10 @@ const Footer = withContext$6(
10205
10205
  },
10206
10206
  "footer"
10207
10207
  );
10208
- const Body = withContext$6(ark.main, "body");
10209
- const CloseTrigger = withContext$6(DialogCloseTrigger, "closeTrigger");
10208
+ const Body = withContext$7(ark.main, "body");
10209
+ const CloseTrigger = withContext$7(DialogCloseTrigger, "closeTrigger");
10210
10210
  const Dialog = {
10211
- Root: Root$7,
10211
+ Root: Root$8,
10212
10212
  Backdrop: Backdrop$1,
10213
10213
  Trigger: Trigger$3,
10214
10214
  Content: Content$4,
@@ -19347,20 +19347,20 @@ const navigationRecipe = sva({
19347
19347
  }
19348
19348
  }
19349
19349
  });
19350
- const { withRootProvider: withRootProvider$2, withContext: withContext$5 } = createStyleContext(navigationRecipe);
19351
- const Root$6 = withRootProvider$2(TabsRoot);
19352
- const Trigger$2 = withContext$5(
19350
+ const { withRootProvider: withRootProvider$3, withContext: withContext$6 } = createStyleContext(navigationRecipe);
19351
+ const Root$7 = withRootProvider$3(TabsRoot);
19352
+ const Trigger$2 = withContext$6(
19353
19353
  ({ icon, label, ...props }) => /* @__PURE__ */ jsxs(TabTrigger, { ...props, children: [
19354
19354
  icon,
19355
19355
  label
19356
19356
  ] }),
19357
19357
  "trigger"
19358
19358
  );
19359
- const List$1 = withContext$5(TabList, "list");
19359
+ const List$2 = withContext$6(TabList, "list");
19360
19360
  const Navigation = {
19361
- Root: Root$6,
19361
+ Root: Root$7,
19362
19362
  Item: Trigger$2,
19363
- List: List$1
19363
+ List: List$2
19364
19364
  };
19365
19365
  const tagRecipe = cva({
19366
19366
  base: {
@@ -20124,15 +20124,15 @@ const tabsRecipe = sva({
20124
20124
  shadow: false
20125
20125
  }
20126
20126
  });
20127
- const { withRootProvider: withRootProvider$1, withContext: withContext$4 } = createStyleContext(tabsRecipe);
20128
- const Root$5 = withRootProvider$1(TabsRoot);
20129
- const List = withContext$4(TabList, "list");
20130
- const Trigger$1 = withContext$4(TabTrigger, "trigger");
20131
- const Content$2 = withContext$4(TabContent, "content");
20132
- const Indicator$1 = withContext$4(TabIndicator, "indicator");
20133
- const Tabs = Object.assign(Root$5, {
20134
- Root: Root$5,
20135
- List,
20127
+ const { withRootProvider: withRootProvider$2, withContext: withContext$5 } = createStyleContext(tabsRecipe);
20128
+ const Root$6 = withRootProvider$2(TabsRoot);
20129
+ const List$1 = withContext$5(TabList, "list");
20130
+ const Trigger$1 = withContext$5(TabTrigger, "trigger");
20131
+ const Content$2 = withContext$5(TabContent, "content");
20132
+ const Indicator$1 = withContext$5(TabIndicator, "indicator");
20133
+ const Tabs = Object.assign(Root$6, {
20134
+ Root: Root$6,
20135
+ List: List$1,
20136
20136
  Trigger: Trigger$1,
20137
20137
  Content: Content$2,
20138
20138
  Indicator: Indicator$1
@@ -20617,13 +20617,13 @@ const toastRecipe = sva({
20617
20617
  }
20618
20618
  });
20619
20619
  const DEFAULT_DURATION = 3e3;
20620
- const Root$4 = forwardRef(
20620
+ const Root$5 = forwardRef(
20621
20621
  ({ children, className, width = "fit", ...props }, ref) => {
20622
20622
  const styles2 = toastRecipe({ width });
20623
20623
  return /* @__PURE__ */ jsx(Box$1, { ref, className: cx(styles2.root, className), ...props, children });
20624
20624
  }
20625
20625
  );
20626
- Root$4.displayName = "Toast.Root";
20626
+ Root$5.displayName = "Toast.Root";
20627
20627
  const Content$1 = forwardRef(
20628
20628
  ({ children, className }, ref) => {
20629
20629
  const styles2 = toastRecipe();
@@ -20669,7 +20669,7 @@ Toaster.displayName = "Toast.Toaster";
20669
20669
  const Toast = forwardRef((props, ref) => {
20670
20670
  return /* @__PURE__ */ jsx(Box$1, { ref, ...props });
20671
20671
  });
20672
- Toast.Root = Root$4;
20672
+ Toast.Root = Root$5;
20673
20673
  Toast.Content = Content$1;
20674
20674
  Toast.Description = Description$1;
20675
20675
  Toast.Icon = Icon;
@@ -20861,27 +20861,27 @@ const selectRecipe = sva({
20861
20861
  disabled: false
20862
20862
  }
20863
20863
  });
20864
- const { withRootProvider, withContext: withContext$3 } = createStyleContext(selectRecipe);
20865
- const Root$3 = withRootProvider(withContext$3(SelectRoot, "root"));
20866
- const Label$2 = withContext$3(SelectLabel, "label");
20867
- const Trigger = withContext$3(({ description, ...props }) => {
20864
+ const { withRootProvider: withRootProvider$1, withContext: withContext$4 } = createStyleContext(selectRecipe);
20865
+ const Root$4 = withRootProvider$1(withContext$4(SelectRoot, "root"));
20866
+ const Label$2 = withContext$4(SelectLabel, "label");
20867
+ const Trigger = withContext$4(({ description, ...props }) => {
20868
20868
  return /* @__PURE__ */ jsxs(Fragment, { children: [
20869
20869
  /* @__PURE__ */ jsx(SelectTrigger, { ...props }),
20870
20870
  description && /* @__PURE__ */ jsx(Description, { text: description })
20871
20871
  ] });
20872
20872
  }, "trigger");
20873
- const ValueText = withContext$3(SelectValueText, "valueText");
20874
- const Description = withContext$3(({ className, text, ...props }) => {
20873
+ const ValueText = withContext$4(SelectValueText, "valueText");
20874
+ const Description = withContext$4(({ className, text, ...props }) => {
20875
20875
  return /* @__PURE__ */ jsx(Text, { className, ...props, children: text });
20876
20876
  }, "description");
20877
- const Content = withContext$3(SelectContent, "content");
20878
- const Item$1 = withContext$3(SelectItem, "item");
20877
+ const Content = withContext$4(SelectContent, "content");
20878
+ const Item$2 = withContext$4(SelectItem, "item");
20879
20879
  const Select = {
20880
- Root: Root$3,
20880
+ Root: Root$4,
20881
20881
  Label: Label$2,
20882
20882
  Trigger,
20883
20883
  Content,
20884
- Item: Item$1,
20884
+ Item: Item$2,
20885
20885
  ValueText,
20886
20886
  Description
20887
20887
  };
@@ -20952,27 +20952,27 @@ const radioGroupRecipe = sva({
20952
20952
  }
20953
20953
  }
20954
20954
  });
20955
- const { withProvider: withProvider$2, withContext: withContext$2 } = createStyleContext(radioGroupRecipe);
20955
+ const { withProvider: withProvider$2, withContext: withContext$3 } = createStyleContext(radioGroupRecipe);
20956
20956
  withProvider$2(RadioGroupRootProvider, "root");
20957
- const Root$2 = withProvider$2(RadioGroupRoot, "root");
20958
- const ItemControl = withContext$2(
20957
+ const Root$3 = withProvider$2(RadioGroupRoot, "root");
20958
+ const ItemControl = withContext$3(
20959
20959
  RadioGroupItemControl,
20960
20960
  "itemControl"
20961
20961
  );
20962
- const Item = withContext$2(
20962
+ const Item$1 = withContext$3(
20963
20963
  RadioGroupItem$1,
20964
20964
  "item"
20965
20965
  );
20966
- const ItemText = withContext$2(
20966
+ const ItemText = withContext$3(
20967
20967
  RadioGroupItemText,
20968
20968
  "itemText"
20969
20969
  );
20970
- const Label$1 = withContext$2(
20970
+ const Label$1 = withContext$3(
20971
20971
  RadioGroupLabel,
20972
20972
  "label"
20973
20973
  );
20974
- const RadioGroupItem = withContext$2(
20975
- ({ children, ...props }) => /* @__PURE__ */ jsxs(Item, { ...props, children: [
20974
+ const RadioGroupItem = withContext$3(
20975
+ ({ children, ...props }) => /* @__PURE__ */ jsxs(Item$1, { ...props, children: [
20976
20976
  /* @__PURE__ */ jsx(ItemControl, {}),
20977
20977
  children && /* @__PURE__ */ jsx(ItemText, { children }),
20978
20978
  /* @__PURE__ */ jsx(RadioGroupItemHiddenInput, {})
@@ -20980,7 +20980,7 @@ const RadioGroupItem = withContext$2(
20980
20980
  "item"
20981
20981
  );
20982
20982
  const RadioGroup = {
20983
- Root: Root$2,
20983
+ Root: Root$3,
20984
20984
  Item: RadioGroupItem,
20985
20985
  Label: Label$1,
20986
20986
  Context: RadioGroupContext
@@ -21074,28 +21074,28 @@ const checkboxRecipe = sva({
21074
21074
  variant: "square"
21075
21075
  }
21076
21076
  });
21077
- const { withProvider: withProvider$1, withContext: withContext$1 } = createStyleContext(checkboxRecipe);
21077
+ const { withProvider: withProvider$1, withContext: withContext$2 } = createStyleContext(checkboxRecipe);
21078
21078
  withProvider$1(CheckboxRootProvider, "root");
21079
- const Root$1 = withProvider$1(CheckboxRoot, "root");
21080
- const Control$1 = withContext$1(
21079
+ const Root$2 = withProvider$1(CheckboxRoot, "root");
21080
+ const Control$1 = withContext$2(
21081
21081
  CheckboxControl,
21082
21082
  "control"
21083
21083
  );
21084
- withContext$1(
21084
+ withContext$2(
21085
21085
  CheckboxGroup,
21086
21086
  "group"
21087
21087
  );
21088
- const Indicator = withContext$1(
21088
+ const Indicator = withContext$2(
21089
21089
  CheckboxIndicator,
21090
21090
  "indicator"
21091
21091
  );
21092
- const Label = withContext$1(
21092
+ const Label = withContext$2(
21093
21093
  CheckboxLabel,
21094
21094
  "label"
21095
21095
  );
21096
21096
  const Checkbox = forwardRef((props, ref) => {
21097
21097
  const { children, ...rootProps } = props;
21098
- return /* @__PURE__ */ jsxs(Root$1, { ref, ...rootProps, children: [
21098
+ return /* @__PURE__ */ jsxs(Root$2, { ref, ...rootProps, children: [
21099
21099
  /* @__PURE__ */ jsxs(Control$1, { children: [
21100
21100
  /* @__PURE__ */ jsx(Indicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) }),
21101
21101
  /* @__PURE__ */ jsx(Indicator, { indeterminate: true, children: /* @__PURE__ */ jsx(MinusIcon, {}) })
@@ -21257,23 +21257,23 @@ const switchRecipe = sva({
21257
21257
  }
21258
21258
  }
21259
21259
  });
21260
- const { withProvider, withContext } = createStyleContext(switchRecipe);
21260
+ const { withProvider, withContext: withContext$1 } = createStyleContext(switchRecipe);
21261
21261
  withProvider(SwitchRootProvider, "root");
21262
- const Root = withProvider(SwitchRoot, "root");
21263
- const Control = withContext(
21262
+ const Root$1 = withProvider(SwitchRoot, "root");
21263
+ const Control = withContext$1(
21264
21264
  SwitchControl,
21265
21265
  "control"
21266
21266
  );
21267
- withContext(
21267
+ withContext$1(
21268
21268
  SwitchLabel,
21269
21269
  "label"
21270
21270
  );
21271
- const Thumb = withContext(
21271
+ const Thumb = withContext$1(
21272
21272
  SwitchThumb,
21273
21273
  "thumb"
21274
21274
  );
21275
21275
  const Switch = forwardRef((props, ref) => {
21276
- return /* @__PURE__ */ jsxs(Root, { ref, ...props, children: [
21276
+ return /* @__PURE__ */ jsxs(Root$1, { ref, ...props, children: [
21277
21277
  /* @__PURE__ */ jsx(Control, { children: /* @__PURE__ */ jsx(Thumb, {}) }),
21278
21278
  /* @__PURE__ */ jsx(SwitchHiddenInput, {})
21279
21279
  ] });
@@ -21388,6 +21388,88 @@ const Fab = forwardRef(({ loading, disabled, children, color: color2, ...rest },
21388
21388
  });
21389
21389
  Fab.displayName = "Fab";
21390
21390
  const index = memo$2(withPolymorphicComponent(Fab));
21391
+ const listRecipe = sva({
21392
+ className: "list",
21393
+ slots: ["item", "root"],
21394
+ base: {
21395
+ root: {
21396
+ display: "flex",
21397
+ flexDir: "column",
21398
+ w: "full"
21399
+ },
21400
+ item: {
21401
+ gap: 2,
21402
+ py: 2,
21403
+ w: "full",
21404
+ rounded: "sm",
21405
+ transition: "background-color 0.1s ease-in-out",
21406
+ cursor: "pointer",
21407
+ "& .label": {
21408
+ color: "content.neutral.default"
21409
+ },
21410
+ "& .sub-label": {
21411
+ color: "content.neutral.subtlest"
21412
+ },
21413
+ _hover: {
21414
+ bg: "background.neutral.selected"
21415
+ },
21416
+ _disabled: {
21417
+ _hover: {
21418
+ bg: "transparent"
21419
+ },
21420
+ "& .label": {
21421
+ color: "content.neutral.disabled"
21422
+ },
21423
+ "& .sub-label": {
21424
+ color: "content.neutral.disabled"
21425
+ },
21426
+ cursor: "not-allowed"
21427
+ }
21428
+ }
21429
+ },
21430
+ variants: {
21431
+ size: {
21432
+ sm: {
21433
+ item: {
21434
+ h: "52px"
21435
+ }
21436
+ },
21437
+ lg: {
21438
+ item: { h: "68px" }
21439
+ }
21440
+ },
21441
+ density: {
21442
+ 1: { item: { px: 2 } },
21443
+ 2: { item: { pl: 12, pr: 2 } }
21444
+ }
21445
+ },
21446
+ defaultVariants: {
21447
+ size: "sm",
21448
+ density: 1
21449
+ }
21450
+ });
21451
+ const { withRootProvider, withContext } = createStyleContext(listRecipe);
21452
+ const Root = withRootProvider(withContext(styled.ul, "root"));
21453
+ const Item = withContext(
21454
+ ({ startAdornment, endAdornment, label, subLabel, disabled, ...rest }) => {
21455
+ return /* @__PURE__ */ jsxs(HStack2, { gap: 2, justify: "space-between", as: "li", ...rest, disabled, children: [
21456
+ /* @__PURE__ */ jsxs(HStack2, { children: [
21457
+ startAdornment,
21458
+ /* @__PURE__ */ jsxs(Stack2, { gap: 0, children: [
21459
+ /* @__PURE__ */ jsx(Text, { variant: "label.md", className: "label", children: label }),
21460
+ subLabel && /* @__PURE__ */ jsx(Text, { variant: "label.sm", className: "sub-label", children: subLabel })
21461
+ ] })
21462
+ ] }),
21463
+ /* @__PURE__ */ jsx(HStack2, { children: endAdornment })
21464
+ ] });
21465
+ },
21466
+ "item"
21467
+ );
21468
+ Item.displayName = "Item";
21469
+ const List = Object.assign(Root, {
21470
+ Root,
21471
+ Item
21472
+ });
21391
21473
  function definePreset(preset2) {
21392
21474
  return preset2;
21393
21475
  }
@@ -21712,6 +21794,7 @@ export {
21712
21794
  HStack2 as HStack,
21713
21795
  index$4 as IconButton,
21714
21796
  index$2 as Input,
21797
+ List,
21715
21798
  Navigation,
21716
21799
  Portal,
21717
21800
  RadioGroup,