@serendie/ui 2.1.3-dev.202509030422 → 2.1.3

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.
Files changed (107) hide show
  1. package/dist/client.js +65 -67
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Avatar/Avatar.d.ts +1 -1
  4. package/dist/components/Banner/Banner.d.ts +1 -1
  5. package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
  6. package/dist/components/Button/Button.d.ts +2 -2
  7. package/dist/components/IconButton/IconButton.d.ts +3 -3
  8. package/dist/components/List/ListItem.d.ts +1 -1
  9. package/dist/components/ModalDialog/ModalDialog.d.ts +1 -1
  10. package/dist/components/NotificationBadge/NotificationBadge.d.ts +1 -1
  11. package/dist/components/Pagination/Pagination.d.ts +1 -1
  12. package/dist/components/Search/Search.d.ts +1 -1
  13. package/dist/components/Select/Select.d.ts +1 -1
  14. package/dist/components/Switch/Switch.d.ts +1 -1
  15. package/dist/components/Tabs/Tabs.d.ts +1 -1
  16. package/dist/components/TextField/TextField.js +156 -59
  17. package/dist/components/Toast/Toast.d.ts +1 -1
  18. package/dist/components/TopAppBar/TopAppBar.d.ts +1 -1
  19. package/dist/index.d.ts +0 -1
  20. package/dist/index.js +65 -67
  21. package/dist/node_modules/@ark-ui/react/dist/components/factory.js +12 -11
  22. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +4 -5
  23. package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +1 -0
  24. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +36 -36
  25. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +235 -238
  26. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +83 -88
  27. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +67 -68
  28. package/dist/node_modules/@zag-js/anatomy/dist/index.js +14 -15
  29. package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +23 -23
  30. package/dist/node_modules/@zag-js/collection/dist/index.js +71 -102
  31. package/dist/node_modules/@zag-js/combobox/dist/index.js +426 -482
  32. package/dist/node_modules/@zag-js/dialog/dist/index.js +64 -66
  33. package/dist/node_modules/@zag-js/dismissable/dist/index.js +69 -94
  34. package/dist/node_modules/@zag-js/dom-query/dist/index.js +300 -359
  35. package/dist/node_modules/@zag-js/menu/dist/index.js +340 -357
  36. package/dist/node_modules/@zag-js/popper/dist/index.js +120 -123
  37. package/dist/node_modules/@zag-js/presence/dist/index.js +17 -17
  38. package/dist/node_modules/@zag-js/radio-group/dist/index.js +117 -118
  39. package/dist/node_modules/@zag-js/react/dist/index.js +121 -124
  40. package/dist/node_modules/@zag-js/select/dist/index.js +197 -211
  41. package/dist/node_modules/@zag-js/store/dist/index.js +131 -0
  42. package/dist/node_modules/@zag-js/toast/dist/index.js +71 -73
  43. package/dist/node_modules/@zag-js/tooltip/dist/index.js +30 -31
  44. package/dist/node_modules/@zag-js/utils/dist/index.js +104 -150
  45. package/dist/node_modules/proxy-compare/dist/index.js +7 -0
  46. package/dist/preset.d.ts +1 -3
  47. package/dist/recipes/index.d.ts +2 -3
  48. package/dist/recipes/index.js +2 -5
  49. package/dist/styled-system/css/cva.js +38 -43
  50. package/dist/styles.css +1 -1
  51. package/package.json +3 -3
  52. package/dist/components/DatePicker/DatePicker.d.ts +0 -13
  53. package/dist/components/DatePicker/DatePicker.js +0 -203
  54. package/dist/components/DatePicker/index.d.ts +0 -1
  55. package/dist/components/DatePicker/index.js +0 -4
  56. package/dist/components/DatePicker/styles.d.ts +0 -1
  57. package/dist/components/DatePicker/styles.js +0 -224
  58. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +0 -15
  59. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +0 -5
  60. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +0 -13
  61. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +0 -14
  62. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +0 -13
  63. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +0 -13
  64. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +0 -14
  65. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +0 -14
  66. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +0 -14
  67. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +0 -55
  68. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +0 -14
  69. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +0 -19
  70. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +0 -26
  71. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +0 -14
  72. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +0 -14
  73. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +0 -14
  74. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +0 -16
  75. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +0 -13
  76. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +0 -14
  77. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +0 -23
  78. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +0 -13
  79. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +0 -5
  80. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +0 -10
  81. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +0 -10
  82. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +0 -10
  83. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +0 -12
  84. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +0 -18
  85. package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +0 -178
  86. package/dist/node_modules/@internationalized/date/dist/DateFormatter.js +0 -99
  87. package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +0 -98
  88. package/dist/node_modules/@internationalized/date/dist/conversion.js +0 -135
  89. package/dist/node_modules/@internationalized/date/dist/manipulation.js +0 -205
  90. package/dist/node_modules/@internationalized/date/dist/queries.js +0 -202
  91. package/dist/node_modules/@internationalized/date/dist/string.js +0 -27
  92. package/dist/node_modules/@internationalized/date/dist/utils.js +0 -6
  93. package/dist/node_modules/@internationalized/date/dist/weekStartData.js +0 -100
  94. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +0 -7
  95. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +0 -7
  96. package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1820
  97. package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
  98. package/dist/node_modules/@zag-js/live-region/dist/index.js +0 -39
  99. package/dist/recipes/textFieldRecipe.d.ts +0 -6
  100. package/dist/recipes/textFieldRecipe.js +0 -107
  101. package/dist/styled-system/recipes/create-recipe.js +0 -37
  102. package/dist/styled-system/recipes/text-field-recipe.js +0 -61
  103. package/styled-system/recipes/create-recipe.js +0 -82
  104. package/styled-system/recipes/index.d.ts +0 -2
  105. package/styled-system/recipes/index.js +0 -1
  106. package/styled-system/recipes/text-field-recipe.d.ts +0 -28
  107. package/styled-system/recipes/text-field-recipe.js +0 -72
package/dist/client.js CHANGED
@@ -14,31 +14,30 @@ import { CheckBox as W, CheckBoxStyle as j, checkboxCheckedIconCss as q, checkbo
14
14
  import { ChoiceBox as J, ChoiceBoxStyle as K } from "./components/ChoiceBox/ChoiceBox.js";
15
15
  import { DashboardWidget as Q } from "./components/DashboardWidget/DashboardWidget.js";
16
16
  import { DataTable as X } from "./components/DataTable/index.js";
17
- import { DatePicker as Z } from "./components/DatePicker/DatePicker.js";
18
- import { Divider as $, DividerStyle as oo } from "./components/Divider/Divider.js";
19
- import { Drawer as eo } from "./components/Drawer/Drawer.js";
20
- import { DropdownMenu as ao, DropdownMenuStyle as po } from "./components/DropdownMenu/DropdownMenu.js";
21
- import { IconButton as io, IconButtonStyle as xo } from "./components/IconButton/IconButton.js";
22
- import { List as co } from "./components/List/List.js";
23
- import { ListItem as so, ListItemStyle as lo } from "./components/List/ListItem.js";
24
- import { ModalDialog as Co } from "./components/ModalDialog/ModalDialog.js";
25
- import { NotificationBadge as Bo } from "./components/NotificationBadge/NotificationBadge.js";
26
- import { Pagination as yo, PaginationStyle as uo } from "./components/Pagination/Pagination.js";
27
- import { PasswordField as To } from "./components/PasswordField/PasswordField.js";
28
- import { ProgressIndicator as bo, ProgressIndicatorStyle as ko } from "./components/ProgressIndicator/ProgressIndicator.js";
29
- import { RadioButton as vo, RadioButtonStyle as Mo, radioCheckedIconCss as wo, radioIconCss as Ao, radioUncheckedIconCss as Lo } from "./components/RadioButton/RadioButton.js";
30
- import { RadioGroup as Ro } from "./components/RadioButton/RadioGroup.js";
31
- import { Search as Go, SearchStyle as Uo } from "./components/Search/Search.js";
32
- import { Select as jo, SelectStyle as qo } from "./components/Select/Select.js";
33
- import { Switch as Eo, SwitchStyle as Ho } from "./components/Switch/Switch.js";
34
- import { Tabs as Ko, TabsStyle as Oo } from "./components/Tabs/Tabs.js";
35
- import { TabItem as Vo, TabItemStyle as Xo } from "./components/Tabs/TabItem.js";
36
- import { TextArea as Zo } from "./components/TextArea/TextArea.js";
37
- import { TextField as $o } from "./components/TextField/TextField.js";
38
- import { Toast as rr, ToastStyle as er, toaster as tr } from "./components/Toast/Toast.js";
39
- import { Tooltip as pr } from "./components/Tooltip/Tooltip.js";
40
- import { TopAppBar as ir } from "./components/TopAppBar/TopAppBar.js";
41
- import { DataTableComponent as nr } from "./components/DataTable/DataTableComponent.js";
17
+ import { Divider as Z, DividerStyle as _ } from "./components/Divider/Divider.js";
18
+ import { Drawer as oo } from "./components/Drawer/Drawer.js";
19
+ import { DropdownMenu as eo, DropdownMenuStyle as to } from "./components/DropdownMenu/DropdownMenu.js";
20
+ import { IconButton as po, IconButtonStyle as mo } from "./components/IconButton/IconButton.js";
21
+ import { List as xo } from "./components/List/List.js";
22
+ import { ListItem as co, ListItemStyle as fo } from "./components/List/ListItem.js";
23
+ import { ModalDialog as lo } from "./components/ModalDialog/ModalDialog.js";
24
+ import { NotificationBadge as Co } from "./components/NotificationBadge/NotificationBadge.js";
25
+ import { Pagination as Bo, PaginationStyle as go } from "./components/Pagination/Pagination.js";
26
+ import { PasswordField as uo } from "./components/PasswordField/PasswordField.js";
27
+ import { ProgressIndicator as To, ProgressIndicatorStyle as Po } from "./components/ProgressIndicator/ProgressIndicator.js";
28
+ import { RadioButton as ko, RadioButtonStyle as Do, radioCheckedIconCss as vo, radioIconCss as Mo, radioUncheckedIconCss as wo } from "./components/RadioButton/RadioButton.js";
29
+ import { RadioGroup as Lo } from "./components/RadioButton/RadioGroup.js";
30
+ import { Search as Ro, SearchStyle as Fo } from "./components/Search/Search.js";
31
+ import { Select as Uo, SelectStyle as Wo } from "./components/Select/Select.js";
32
+ import { Switch as qo, SwitchStyle as zo } from "./components/Switch/Switch.js";
33
+ import { Tabs as Ho, TabsStyle as Jo } from "./components/Tabs/Tabs.js";
34
+ import { TabItem as Oo, TabItemStyle as Qo } from "./components/Tabs/TabItem.js";
35
+ import { TextArea as Xo } from "./components/TextArea/TextArea.js";
36
+ import { TextField as Zo } from "./components/TextField/TextField.js";
37
+ import { Toast as $o, ToastStyle as or, toaster as rr } from "./components/Toast/Toast.js";
38
+ import { Tooltip as tr } from "./components/Tooltip/Tooltip.js";
39
+ import { TopAppBar as pr } from "./components/TopAppBar/TopAppBar.js";
40
+ import { DataTableComponent as ir } from "./components/DataTable/DataTableComponent.js";
42
41
  export {
43
42
  a as Accordion,
44
43
  m as AccordionGroup,
@@ -59,46 +58,45 @@ export {
59
58
  K as ChoiceBoxStyle,
60
59
  Q as DashboardWidget,
61
60
  X as DataTable,
62
- nr as DataTableComponent,
63
- Z as DatePicker,
64
- $ as Divider,
65
- oo as DividerStyle,
66
- eo as Drawer,
67
- ao as DropdownMenu,
68
- po as DropdownMenuStyle,
69
- io as IconButton,
70
- xo as IconButtonStyle,
71
- co as List,
72
- so as ListItem,
73
- lo as ListItemStyle,
74
- Co as ModalDialog,
75
- Bo as NotificationBadge,
76
- yo as Pagination,
77
- uo as PaginationStyle,
78
- To as PasswordField,
79
- bo as ProgressIndicator,
80
- ko as ProgressIndicatorStyle,
81
- vo as RadioButton,
82
- Mo as RadioButtonStyle,
83
- Ro as RadioGroup,
84
- Go as Search,
85
- Uo as SearchStyle,
86
- jo as Select,
87
- qo as SelectStyle,
61
+ ir as DataTableComponent,
62
+ Z as Divider,
63
+ _ as DividerStyle,
64
+ oo as Drawer,
65
+ eo as DropdownMenu,
66
+ to as DropdownMenuStyle,
67
+ po as IconButton,
68
+ mo as IconButtonStyle,
69
+ xo as List,
70
+ co as ListItem,
71
+ fo as ListItemStyle,
72
+ lo as ModalDialog,
73
+ Co as NotificationBadge,
74
+ Bo as Pagination,
75
+ go as PaginationStyle,
76
+ uo as PasswordField,
77
+ To as ProgressIndicator,
78
+ Po as ProgressIndicatorStyle,
79
+ ko as RadioButton,
80
+ Do as RadioButtonStyle,
81
+ Lo as RadioGroup,
82
+ Ro as Search,
83
+ Fo as SearchStyle,
84
+ Uo as Select,
85
+ Wo as SelectStyle,
88
86
  b as SerendieChartTheme,
89
87
  e as SerendiePreset,
90
- Eo as Switch,
91
- Ho as SwitchStyle,
92
- Vo as TabItem,
93
- Xo as TabItemStyle,
94
- Ko as Tabs,
95
- Oo as TabsStyle,
96
- Zo as TextArea,
97
- $o as TextField,
98
- rr as Toast,
99
- er as ToastStyle,
100
- pr as Tooltip,
101
- ir as TopAppBar,
88
+ qo as Switch,
89
+ zo as SwitchStyle,
90
+ Oo as TabItem,
91
+ Qo as TabItemStyle,
92
+ Ho as Tabs,
93
+ Jo as TabsStyle,
94
+ Xo as TextArea,
95
+ Zo as TextField,
96
+ $o as Toast,
97
+ or as ToastStyle,
98
+ tr as Tooltip,
99
+ pr as TopAppBar,
102
100
  q as checkboxCheckedIconCss,
103
101
  z as checkboxIconCss,
104
102
  E as checkboxUncheckedIconCss,
@@ -107,11 +105,11 @@ export {
107
105
  M as getChartColor,
108
106
  w as getChartColors,
109
107
  A as legendChartMargin,
110
- wo as radioCheckedIconCss,
111
- Ao as radioIconCss,
112
- Lo as radioUncheckedIconCss,
108
+ vo as radioCheckedIconCss,
109
+ Mo as radioIconCss,
110
+ wo as radioUncheckedIconCss,
113
111
  L as spaciousChartMargin,
114
- tr as toaster,
112
+ rr as toaster,
115
113
  N as useBarChartProps,
116
114
  R as useChartProps,
117
115
  F as useLineChartProps,
@@ -1,6 +1,6 @@
1
1
  import { AccordionItemProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/types';
3
- declare const AccordionStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "description" | "item" | "title" | "itemIndicator", {
3
+ declare const AccordionStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "title" | "itemIndicator" | "icon" | "description", {
4
4
  isLeftIcon: {
5
5
  true: {
6
6
  item: {
@@ -1,6 +1,6 @@
1
1
  import { AvatarRootProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const AvatarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "image" | "fallback", {
3
+ export declare const AvatarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"image" | "root" | "fallback", {
4
4
  size: {
5
5
  small: {
6
6
  root: {
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "icon" | "description" | "title", {
3
+ declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "title" | "icon" | "description", {
4
4
  type: {
5
5
  information: {
6
6
  container: {
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const BottomNavigationItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "label" | "icon" | "iconGroup" | "badge", {
3
+ export declare const BottomNavigationItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "label" | "root" | "iconGroup" | "badge", {
4
4
  isActive: {
5
5
  true: {
6
6
  label: {
@@ -117,14 +117,14 @@ type ButtonLoadingProps = {
117
117
  };
118
118
  export declare const Button: React.ForwardRefExoticComponent<(Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
119
119
  styleType?: "filled" | "outlined" | "ghost" | "rectangle" | undefined;
120
- size?: "medium" | "small" | undefined;
120
+ size?: "small" | "medium" | undefined;
121
121
  } & {
122
122
  leftIcon?: React.ReactElement;
123
123
  } & {
124
124
  rightIcon?: never;
125
125
  } & ButtonLoadingProps, "ref"> | Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
126
126
  styleType?: "filled" | "outlined" | "ghost" | "rectangle" | undefined;
127
- size?: "medium" | "small" | undefined;
127
+ size?: "small" | "medium" | undefined;
128
128
  } & {
129
129
  leftIcon?: never;
130
130
  } & {
@@ -92,19 +92,19 @@ type CircleLargeProps = {
92
92
  export declare const IconButton: React.ForwardRefExoticComponent<(Omit<{
93
93
  shape?: "circle" | "rectangle" | undefined;
94
94
  styleType?: "filled" | "outlined" | "ghost" | undefined;
95
- size?: "medium" | "small" | "large" | undefined;
95
+ size?: "small" | "large" | "medium" | undefined;
96
96
  } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
97
97
  icon: React.ReactElement;
98
98
  } & RectangleProps, "ref"> | Omit<{
99
99
  shape?: "circle" | "rectangle" | undefined;
100
100
  styleType?: "filled" | "outlined" | "ghost" | undefined;
101
- size?: "medium" | "small" | "large" | undefined;
101
+ size?: "small" | "large" | "medium" | undefined;
102
102
  } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
103
103
  icon: React.ReactElement;
104
104
  } & CircleProps, "ref"> | Omit<{
105
105
  shape?: "circle" | "rectangle" | undefined;
106
106
  styleType?: "filled" | "outlined" | "ghost" | undefined;
107
- size?: "medium" | "small" | "large" | undefined;
107
+ size?: "small" | "large" | "medium" | undefined;
108
108
  } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
109
109
  icon: React.ReactElement;
110
110
  } & CircleLargeProps, "ref">) & React.RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
- export declare const ListItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "description" | "title" | "badge" | "leftIcon" | "rightIcon" | "wrapper" | "textGroup", {
2
+ export declare const ListItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"title" | "description" | "root" | "badge" | "leftIcon" | "rightIcon" | "wrapper" | "textGroup", {
3
3
  isLargeLeftIcon: {
4
4
  true: {
5
5
  leftIcon: {
@@ -1,6 +1,6 @@
1
1
  import { DialogRootProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- declare const ModalDialogStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "description" | "title" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "description" | "title" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper">>;
3
+ declare const ModalDialogStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "title" | "description" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "title" | "description" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper">>;
4
4
  type Props = {
5
5
  isOpen: boolean;
6
6
  title: string;
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- declare const NotificationBadgeStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "text", {
3
+ declare const NotificationBadgeStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"text" | "root", {
4
4
  size: {
5
5
  small: {
6
6
  root: {
@@ -1,6 +1,6 @@
1
1
  import { default as React, ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const PaginationStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "item" | "ellipsis" | "prevTrigger" | "nextTrigger", {
3
+ export declare const PaginationStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "root" | "ellipsis" | "prevTrigger" | "nextTrigger", {
4
4
  size: {
5
5
  medium: {
6
6
  root: {
@@ -1,6 +1,6 @@
1
1
  import { ComboboxRootProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const SearchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"input" | "icon" | "combobox" | "control" | "comboboxItem" | "iconBox" | "closeIcon", {
3
+ export declare const SearchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "input" | "combobox" | "control" | "comboboxItem" | "iconBox" | "closeIcon", {
4
4
  size: {
5
5
  medium: {
6
6
  iconBox: {
@@ -1,6 +1,6 @@
1
1
  import { SelectRootProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "root" | "item" | "valueText" | "iconBox" | "trigger", {
3
+ export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "item" | "root" | "valueText" | "iconBox" | "trigger", {
4
4
  size: {
5
5
  medium: {
6
6
  root: {
@@ -1,6 +1,6 @@
1
1
  import { Switch as ArkSwitch, SwitchRootProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const SwitchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "label" | "helperText" | "textGroup" | "control" | "thumb", import('../../../styled-system/types').SlotRecipeVariantRecord<"root" | "label" | "helperText" | "textGroup" | "control" | "thumb">>;
3
+ export declare const SwitchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb", import('../../../styled-system/types').SlotRecipeVariantRecord<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb">>;
4
4
  type SwitchItemProps = {
5
5
  label: string;
6
6
  helperText?: string;
@@ -1,3 +1,3 @@
1
1
  import { Tabs as ArkTabs } from '@ark-ui/react';
2
- export declare const TabsStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "list", import('../../../styled-system/types').SlotRecipeVariantRecord<"root" | "list">>;
2
+ export declare const TabsStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"list" | "root", import('../../../styled-system/types').SlotRecipeVariantRecord<"list" | "root">>;
3
3
  export declare const Tabs: ({ children, className, ...props }: ArkTabs.RootProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,92 +1,189 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { SerendieSymbolAlertCircle as A, SerendieSymbolClose as T } from "@serendie/symbols";
3
- import W from "../../node_modules/merge-refs/dist/esm/index.js";
4
- import m, { forwardRef as q } from "react";
5
- import { textFieldRecipe as x } from "../../styled-system/recipes/text-field-recipe.js";
6
- import { cx as z } from "../../styled-system/css/cx.js";
7
- import { css as b } from "../../styled-system/css/css.js";
8
- const L = q(
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { SerendieSymbolAlertCircle as P, SerendieSymbolClose as j } from "@serendie/symbols";
3
+ import q from "../../node_modules/merge-refs/dist/esm/index.js";
4
+ import m, { forwardRef as L } from "react";
5
+ import { sva as M } from "../../styled-system/css/sva.js";
6
+ import { cx as A } from "../../styled-system/css/cx.js";
7
+ import { css as v } from "../../styled-system/css/css.js";
8
+ const S = M({
9
+ slots: [
10
+ "root",
11
+ "label",
12
+ "required",
13
+ "inputWrapper",
14
+ "leftContent",
15
+ "rightContent",
16
+ "input",
17
+ "icon",
18
+ "messageField",
19
+ "description",
20
+ "invalidMessage"
21
+ ],
22
+ base: {
23
+ root: {
24
+ display: "inline-grid",
25
+ // 後から指定したCSSからwidthが上書きできないため、@layer componentsを指定
26
+ "@layer components": {
27
+ width: "min(100%, 300px)"
28
+ },
29
+ gridTemplateColumns: "auto",
30
+ rowGap: "sd.system.dimension.spacing.extraSmall",
31
+ textStyle: {
32
+ base: "sd.system.typography.body.medium_compact",
33
+ expanded: "sd.system.typography.body.medium_expanded"
34
+ }
35
+ },
36
+ label: {
37
+ textStyle: {
38
+ base: "sd.system.typography.label.medium_compact",
39
+ expanded: "sd.system.typography.label.medium_expanded"
40
+ }
41
+ },
42
+ inputWrapper: {
43
+ height: 48,
44
+ display: "grid",
45
+ gridTemplateColumns: "auto 1fr auto auto",
46
+ alignItems: "center",
47
+ outlineStyle: "solid",
48
+ outlineWidth: "sd.system.dimension.border.medium",
49
+ outlineColor: "sd.system.color.component.outline",
50
+ borderRadius: "sd.system.dimension.radius.medium",
51
+ backgroundColor: "sd.system.color.component.surface",
52
+ '&:has([data-focus="true"])': {
53
+ outlineWidth: "sd.system.dimension.border.thick",
54
+ outlineColor: "sd.system.color.impression.primary"
55
+ },
56
+ _focusWithin: {
57
+ outlineWidth: "sd.system.dimension.border.thick",
58
+ outlineColor: "sd.system.color.impression.primary"
59
+ },
60
+ _disabled: {
61
+ backgroundColor: "sd.system.color.interaction.disabled",
62
+ cursor: "not-allowed"
63
+ },
64
+ _invalid: {
65
+ outlineColor: "sd.system.color.impression.negative"
66
+ }
67
+ },
68
+ leftContent: {
69
+ paddingLeft: "sd.system.dimension.spacing.medium"
70
+ },
71
+ rightContent: {
72
+ paddingRight: "sd.system.dimension.spacing.medium"
73
+ },
74
+ input: {
75
+ outline: "none",
76
+ paddingTop: "sd.system.dimension.spacing.extraSmall",
77
+ paddingRight: "sd.system.dimension.spacing.twoExtraSmall",
78
+ paddingBottom: "sd.system.dimension.spacing.extraSmall",
79
+ paddingLeft: "sd.system.dimension.spacing.medium"
80
+ },
81
+ icon: {
82
+ display: "grid",
83
+ placeItems: "center",
84
+ w: "48px",
85
+ h: "48px",
86
+ expanded: {
87
+ w: "44px",
88
+ h: "44px"
89
+ }
90
+ },
91
+ required: {
92
+ pl: "sd.system.dimension.spacing.extraSmall",
93
+ color: "sd.system.color.impression.negative"
94
+ },
95
+ messageField: {
96
+ textStyle: {
97
+ base: "sd.system.typography.body.extraSmall_compact",
98
+ expanded: "sd.system.typography.body.extraSmall_expanded"
99
+ }
100
+ },
101
+ invalidMessage: {
102
+ color: "sd.system.color.impression.negative"
103
+ }
104
+ }
105
+ }), K = L(
9
106
  ({
10
- placeholder: F,
11
- label: d,
12
- description: i,
13
- required: u,
14
- invalidMessage: c,
15
- invalid: a,
16
- type: S = "text",
17
- disabled: n,
18
- onChange: h,
19
- value: f,
20
- className: V,
21
- leftContent: N,
22
- rightContent: p,
23
- ...l
107
+ placeholder: C,
108
+ label: c,
109
+ description: a,
110
+ required: p,
111
+ invalidMessage: d,
112
+ invalid: o,
113
+ type: N = "text",
114
+ disabled: l,
115
+ onChange: u,
116
+ value: y,
117
+ className: _,
118
+ leftContent: g,
119
+ rightContent: h,
120
+ ...t
24
121
  }, w) => {
25
- const o = m.useRef(null), y = W(o, w), [C, P] = x.splitVariantProps(l), t = x(C), _ = i || a && c, [j, I] = m.useState(l.defaultValue || f), v = l.id || m.useId(), k = () => {
26
- var R;
27
- const s = {
122
+ const r = m.useRef(null), R = q(r, w), [F, W] = S.splitVariantProps(t), s = S(F), k = a || o && d, [T, V] = m.useState(t.defaultValue || y), x = t.id || m.useId(), I = () => {
123
+ var b;
124
+ const i = {
28
125
  target: { value: "" }
29
126
  };
30
- g(s), (R = l.onReset) == null || R.call(l, s), o.current && (o.current.value = "");
31
- }, g = (s) => {
32
- I(s.target.value), h && h(s);
127
+ f(i), (b = t.onReset) == null || b.call(t, i), r.current && (r.current.value = "");
128
+ }, f = (i) => {
129
+ V(i.target.value), u && u(i);
33
130
  };
34
- return /* @__PURE__ */ r("div", { className: z(t.root, V), children: [
35
- d ? /* @__PURE__ */ r("label", { className: t.label, htmlFor: v, children: [
36
- d,
37
- u && /* @__PURE__ */ e("span", { className: t.labelRequired, children: "必須" })
131
+ return /* @__PURE__ */ n("div", { className: A(s.root, _), children: [
132
+ c ? /* @__PURE__ */ n("label", { className: s.label, htmlFor: x, children: [
133
+ c,
134
+ p && /* @__PURE__ */ e("span", { className: s.required, children: "必須" })
38
135
  ] }) : null,
39
- /* @__PURE__ */ r(
136
+ /* @__PURE__ */ n(
40
137
  "div",
41
138
  {
42
- className: t.inputWrapper,
43
- "data-invalid": a ? !0 : void 0,
44
- "data-disabled": n ? !0 : void 0,
139
+ className: s.inputWrapper,
140
+ "data-invalid": o ? !0 : void 0,
141
+ "data-disabled": l ? !0 : void 0,
45
142
  children: [
46
- N ? /* @__PURE__ */ e("div", { className: t.leftContent, children: N }) : /* @__PURE__ */ e("div", {}),
143
+ g ? /* @__PURE__ */ e("div", { className: s.leftContent, children: g }) : /* @__PURE__ */ e("div", {}),
47
144
  /* @__PURE__ */ e(
48
145
  "input",
49
146
  {
50
- ref: y,
51
- id: v,
52
- placeholder: F,
53
- required: u,
54
- disabled: n,
55
- value: f,
56
- type: S,
57
- className: t.input,
58
- onChange: g,
59
- ...P
147
+ ref: R,
148
+ id: x,
149
+ placeholder: C,
150
+ required: p,
151
+ disabled: l,
152
+ value: y,
153
+ type: N,
154
+ className: s.input,
155
+ onChange: f,
156
+ ...W
60
157
  }
61
158
  ),
62
- p ? /* @__PURE__ */ e("div", { className: t.rightContent, children: p }) : /* @__PURE__ */ e("div", { className: t.icon, children: !n && /* disabledの場合はアイコンを表示しない */
63
- (a ? /* @__PURE__ */ e(
159
+ h ? /* @__PURE__ */ e("div", { className: s.rightContent, children: h }) : /* @__PURE__ */ e("div", { className: s.icon, children: !l && /* disabledの場合はアイコンを表示しない */
160
+ (o ? /* @__PURE__ */ e(
64
161
  "span",
65
162
  {
66
- className: b({
163
+ className: v({
67
164
  color: "sd.system.color.impression.negative"
68
165
  }),
69
- children: /* @__PURE__ */ e(A, { width: 20, height: 20 })
166
+ children: /* @__PURE__ */ e(P, { width: 20, height: 20 })
70
167
  }
71
- ) : j ? /* @__PURE__ */ e(
168
+ ) : T ? /* @__PURE__ */ e(
72
169
  "button",
73
170
  {
74
- className: b({ cursor: "pointer" }),
75
- onClick: k,
171
+ className: v({ cursor: "pointer" }),
172
+ onClick: I,
76
173
  "aria-label": "値をクリア",
77
- children: /* @__PURE__ */ e(T, { width: 20, height: 20 })
174
+ children: /* @__PURE__ */ e(j, { width: 20, height: 20 })
78
175
  }
79
176
  ) : null) })
80
177
  ]
81
178
  }
82
179
  ),
83
- _ && /* @__PURE__ */ r("div", { className: t.messageField, children: [
84
- i && /* @__PURE__ */ e("p", { className: t.description, children: i }),
85
- a && c && /* @__PURE__ */ e("p", { className: t.invalidMessage, children: c })
180
+ k && /* @__PURE__ */ n("div", { className: s.messageField, children: [
181
+ a && /* @__PURE__ */ e("p", { className: s.description, children: a }),
182
+ o && d && /* @__PURE__ */ e("p", { className: s.invalidMessage, children: d })
86
183
  ] })
87
184
  ] });
88
185
  }
89
186
  );
90
187
  export {
91
- L as TextField
188
+ K as TextField
92
189
  };
@@ -1,5 +1,5 @@
1
1
  import { createToaster } from '@ark-ui/react';
2
- export declare const ToastStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "icon" | "text" | "textGroup", {
2
+ export declare const ToastStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "text" | "root" | "textGroup", {
3
3
  variant: {
4
4
  default: {
5
5
  root: {
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
3
  import { NotificationBadgeProps } from '../NotificationBadge';
4
- declare const topAppBarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "left" | "root" | "title" | "buttonContainer", {
4
+ declare const topAppBarStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "left" | "title" | "root" | "buttonContainer", {
5
5
  type: {
6
6
  navbar: {};
7
7
  titleBar: {};
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ export * from './components/CheckBox/index.ts';
10
10
  export * from './components/ChoiceBox/index.ts';
11
11
  export * from './components/DashboardWidget/index.ts';
12
12
  export * from './components/DataTable/index.ts';
13
- export * from './components/DatePicker/index.ts';
14
13
  export * from './components/Divider/index.ts';
15
14
  export * from './components/Drawer/index.ts';
16
15
  export * from './components/DropdownMenu/index.ts';