@tcn/ui 0.12.5 → 0.12.7

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 (131) hide show
  1. package/dist/aside.css +1 -0
  2. package/dist/inputs/color_input/color_input.js +18 -18
  3. package/dist/inputs/color_input/color_input.js.map +1 -1
  4. package/dist/inputs/control/control.d.ts +10 -0
  5. package/dist/inputs/control/control.d.ts.map +1 -0
  6. package/dist/inputs/control/control.js +17 -0
  7. package/dist/inputs/control/control.js.map +1 -0
  8. package/dist/inputs/control_set/control_set.d.ts +5 -0
  9. package/dist/inputs/control_set/control_set.d.ts.map +1 -0
  10. package/dist/inputs/control_set/control_set.js +20 -0
  11. package/dist/inputs/{input_group/input_group.js.map → control_set/control_set.js.map} +1 -1
  12. package/dist/inputs/date_picker/date_picker_input.js +20 -20
  13. package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
  14. package/dist/inputs/index.d.ts +2 -1
  15. package/dist/inputs/index.d.ts.map +1 -1
  16. package/dist/inputs/index.js +27 -24
  17. package/dist/inputs/index.js.map +1 -1
  18. package/dist/inputs/input/input.js +6 -6
  19. package/dist/inputs/input/input.js.map +1 -1
  20. package/dist/inputs/phone_number_input/phone_number_country_select_adapter.js +15 -15
  21. package/dist/inputs/phone_number_input/phone_number_country_select_adapter.js.map +1 -1
  22. package/dist/inputs/phone_number_input/phone_number_input.js +24 -24
  23. package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
  24. package/dist/inputs/phone_number_input/phone_number_input_adapter.js +21 -21
  25. package/dist/inputs/phone_number_input/phone_number_input_adapter.js.map +1 -1
  26. package/dist/inputs/phone_number_input/sip_input.js +14 -14
  27. package/dist/inputs/phone_number_input/sip_input.js.map +1 -1
  28. package/dist/inputs/select/select.js +6 -6
  29. package/dist/inputs/select/select.js.map +1 -1
  30. package/dist/inputs/textarea/textarea.js +8 -8
  31. package/dist/inputs/textarea/textarea.js.map +1 -1
  32. package/dist/inputs/unit_input/unit_input.js +20 -20
  33. package/dist/inputs/unit_input/unit_input.js.map +1 -1
  34. package/dist/overlay/frame/frame.d.ts +2 -2
  35. package/dist/overlay/frame/frame.d.ts.map +1 -1
  36. package/dist/overlay/frame/frame.js +67 -59
  37. package/dist/overlay/frame/frame.js.map +1 -1
  38. package/dist/overlay/slide/slide.d.ts +9 -0
  39. package/dist/overlay/slide/slide.d.ts.map +1 -0
  40. package/dist/overlay/slide/slide.js +29 -0
  41. package/dist/overlay/slide/slide.js.map +1 -0
  42. package/dist/slide.css +1 -0
  43. package/dist/surfaces/aside/aside.d.ts +5 -0
  44. package/dist/surfaces/aside/aside.d.ts.map +1 -0
  45. package/dist/surfaces/aside/aside.js +19 -0
  46. package/dist/surfaces/aside/aside.js.map +1 -0
  47. package/dist/surfaces/drawers/drawer.d.ts +5 -0
  48. package/dist/surfaces/drawers/drawer.d.ts.map +1 -0
  49. package/dist/surfaces/drawers/drawer.js +23 -0
  50. package/dist/surfaces/drawers/drawer.js.map +1 -0
  51. package/dist/surfaces/index.d.ts +2 -4
  52. package/dist/surfaces/index.d.ts.map +1 -1
  53. package/dist/surfaces/index.js +22 -26
  54. package/dist/surfaces/index.js.map +1 -1
  55. package/dist/surfaces/modal/modal.d.ts +1 -1
  56. package/dist/surfaces/modal/modal.d.ts.map +1 -1
  57. package/dist/surfaces/window/window.d.ts +1 -1
  58. package/dist/surfaces/window/window.d.ts.map +1 -1
  59. package/dist/themes/stylesheets/reset.css +1 -1
  60. package/dist/themes/stylesheets/reset.js +2 -2
  61. package/dist/themes/stylesheets/reset.js.map +1 -1
  62. package/dist/themes/themes/ergo/ergo_theme.css +1 -1
  63. package/dist/themes/themes/ergo/ergo_theme.js +95 -8
  64. package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
  65. package/dist/utils/dnd/hooks/use_drag_container.d.ts.map +1 -1
  66. package/dist/utils/dnd/hooks/use_drag_container.js.map +1 -1
  67. package/package.json +2 -2
  68. package/src/inputs/color_input/color_input.tsx +3 -3
  69. package/src/inputs/control/control.stories.tsx +158 -0
  70. package/src/inputs/control/control.tsx +32 -0
  71. package/src/inputs/control/control_stories.module.css +7 -0
  72. package/src/inputs/control_set/control_set.stories.tsx +46 -0
  73. package/src/inputs/{input_group/input_group.tsx → control_set/control_set.tsx} +5 -5
  74. package/src/inputs/date_picker/date_picker_input.stories.tsx +1 -1
  75. package/src/inputs/date_picker/date_picker_input.tsx +1 -1
  76. package/src/inputs/index.ts +2 -1
  77. package/src/inputs/input/input.tsx +1 -1
  78. package/src/inputs/phone_number_input/phone_number_country_select_adapter.tsx +1 -1
  79. package/src/inputs/phone_number_input/phone_number_input.tsx +1 -1
  80. package/src/inputs/phone_number_input/phone_number_input_adapter.tsx +2 -2
  81. package/src/inputs/phone_number_input/sip_input.tsx +4 -4
  82. package/src/inputs/select/select.tsx +1 -1
  83. package/src/inputs/textarea/textarea.stories.tsx +1 -1
  84. package/src/inputs/textarea/textarea.tsx +1 -1
  85. package/src/inputs/unit_input/unit_input.tsx +3 -3
  86. package/src/overlay/frame/frame.tsx +13 -16
  87. package/src/overlay/slide/slide.module.css +30 -0
  88. package/src/overlay/slide/slide.stories.tsx +58 -0
  89. package/src/overlay/slide/slide.tsx +51 -0
  90. package/src/surfaces/aside/aside.module.css +5 -0
  91. package/src/surfaces/aside/aside.stories.tsx +56 -0
  92. package/src/surfaces/aside/aside.tsx +22 -0
  93. package/src/surfaces/drawers/drawer.stories.tsx +130 -0
  94. package/src/surfaces/drawers/drawer.tsx +26 -0
  95. package/src/surfaces/index.ts +2 -4
  96. package/src/themes/stylesheets/reset.css +2 -2
  97. package/src/themes/themes/ergo/ergo_theme.css +95 -8
  98. package/src/utils/dnd/hooks/use_drag_container.ts +0 -7
  99. package/tsconfig.json +5 -33
  100. package/dist/drawer_bottom.css +0 -1
  101. package/dist/drawer_end.css +0 -1
  102. package/dist/drawer_start.css +0 -1
  103. package/dist/drawer_top.css +0 -1
  104. package/dist/inputs/input_group/input_group.d.ts +0 -5
  105. package/dist/inputs/input_group/input_group.d.ts.map +0 -1
  106. package/dist/inputs/input_group/input_group.js +0 -20
  107. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.d.ts +0 -7
  108. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.d.ts.map +0 -1
  109. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +0 -22
  110. package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +0 -1
  111. package/dist/surfaces/drawers/drawer_end/drawer_end.d.ts +0 -7
  112. package/dist/surfaces/drawers/drawer_end/drawer_end.d.ts.map +0 -1
  113. package/dist/surfaces/drawers/drawer_end/drawer_end.js +0 -20
  114. package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +0 -1
  115. package/dist/surfaces/drawers/drawer_start/drawer_start.d.ts +0 -7
  116. package/dist/surfaces/drawers/drawer_start/drawer_start.d.ts.map +0 -1
  117. package/dist/surfaces/drawers/drawer_start/drawer_start.js +0 -22
  118. package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +0 -1
  119. package/dist/surfaces/drawers/drawer_top/drawer_top.d.ts +0 -7
  120. package/dist/surfaces/drawers/drawer_top/drawer_top.d.ts.map +0 -1
  121. package/dist/surfaces/drawers/drawer_top/drawer_top.js +0 -20
  122. package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +0 -1
  123. package/src/surfaces/drawers/__stories__/drawers.stories.tsx +0 -26
  124. package/src/surfaces/drawers/drawer_bottom/drawer_bottom.module.css +0 -5
  125. package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +0 -23
  126. package/src/surfaces/drawers/drawer_end/drawer_end.module.css +0 -5
  127. package/src/surfaces/drawers/drawer_end/drawer_end.tsx +0 -24
  128. package/src/surfaces/drawers/drawer_start/drawer_start.module.css +0 -5
  129. package/src/surfaces/drawers/drawer_start/drawer_start.tsx +0 -23
  130. package/src/surfaces/drawers/drawer_top/drawer_top.module.css +0 -5
  131. package/src/surfaces/drawers/drawer_top/drawer_top.tsx +0 -24
@@ -1,7 +0,0 @@
1
- import { VStackProps } from '../../../stacks/v_stack.js';
2
- import { default as React } from 'react';
3
- export interface DrawerTopProps extends Omit<VStackProps, 'as' | 'children'> {
4
- children?: React.ReactNode;
5
- }
6
- export declare const DrawerTop: React.ForwardRefExoticComponent<DrawerTopProps & React.RefAttributes<HTMLElement>>;
7
- //# sourceMappingURL=drawer_top.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer_top.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/drawers/drawer_top/drawer_top.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,UAAU,CAAC;IAC1E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,oFAcpB,CAAC"}
@@ -1,20 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { VStack as m } from "../../../stacks/v_stack.js";
3
- import { clsx as s } from "clsx";
4
- import c from "react";
5
- import '../../../drawer_top.css';const p = "_drawerBottom_7a0635a", f = { drawerBottom: p }, T = c.forwardRef(function({ children: r, className: o, ...t }, a) {
6
- return /* @__PURE__ */ e(
7
- m,
8
- {
9
- ref: a,
10
- as: "section",
11
- className: s(f.drawerTop, o, "tcn-drawerTop"),
12
- ...t,
13
- children: r
14
- }
15
- );
16
- });
17
- export {
18
- T as DrawerTop
19
- };
20
- //# sourceMappingURL=drawer_top.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer_top.js","sources":["../../../../src/surfaces/drawers/drawer_top/drawer_top.tsx"],"sourcesContent":["import { VStack, type VStackProps } from '../../../stacks/v_stack.js';\nimport { clsx } from 'clsx';\nimport React from 'react';\nimport styles from './drawer_top.module.css';\n\nexport interface DrawerTopProps extends Omit<VStackProps, 'as' | 'children'> {\n children?: React.ReactNode;\n}\n\nexport const DrawerTop = React.forwardRef<HTMLElement, DrawerTopProps>(function DrawerTop(\n { children, className, ...props }: DrawerTopProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n as=\"section\"\n className={clsx(styles.drawerTop, className, 'tcn-drawerTop')}\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["DrawerTop","React","children","className","props","ref","jsx","VStack","clsx","styles"],"mappings":";;;;4DASaA,IAAYC,EAAM,WAAwC,SACrE,EAAE,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAC1BC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAWG,EAAKC,EAAO,WAAWN,GAAW,eAAe;AAAA,MAC3D,GAAGC;AAAA,MAEH,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,26 +0,0 @@
1
- import { DrawerStart } from '../drawer_start/drawer_start';
2
- import { DrawerEnd } from '../drawer_end/drawer_end';
3
- import { DrawerTop } from '../drawer_top/drawer_top';
4
- import { DrawerBottom } from '../drawer_bottom/drawer_bottom';
5
-
6
- export default {
7
- title: 'Surfaces/Drawers',
8
- component: DrawerStart,
9
- tags: ['autodocs'],
10
- };
11
-
12
- export const DrawerStartStory = () => {
13
- return <DrawerStart>drawer start</DrawerStart>;
14
- };
15
-
16
- export const DrawerEndStory = () => {
17
- return <DrawerEnd>drawer end</DrawerEnd>;
18
- };
19
-
20
- export const DrawerTopStory = () => {
21
- return <DrawerTop>drawer top</DrawerTop>;
22
- };
23
-
24
- export const DrawerBottomStory = () => {
25
- return <DrawerBottom>drawer bottom</DrawerBottom>;
26
- };
@@ -1,5 +0,0 @@
1
- @layer tcn-system {
2
- :where(.drawerBottom) {
3
- background-color: var(--background-color-primary);
4
- }
5
- }
@@ -1,23 +0,0 @@
1
- import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import { clsx } from 'clsx';
3
- import React from 'react';
4
- import styles from './drawer_bottom.module.css';
5
-
6
- export interface DrawerBottomProps extends Omit<VStackProps, 'as' | 'children'> {
7
- children?: React.ReactNode;
8
- }
9
-
10
- export const DrawerBottom = React.forwardRef<HTMLElement, DrawerBottomProps>(
11
- function DrawerBottom({ children, className, ...props }: DrawerBottomProps, ref) {
12
- return (
13
- <VStack
14
- ref={ref}
15
- as="section"
16
- className={clsx(styles.drawerBottom, className, 'tcn-drawer-bottom')}
17
- {...props}
18
- >
19
- {children}
20
- </VStack>
21
- );
22
- }
23
- );
@@ -1,5 +0,0 @@
1
- @layer tcn-system {
2
- :where(.drawerEnd) {
3
- background-color: var(--background-color-primary);
4
- }
5
- }
@@ -1,24 +0,0 @@
1
- import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import { clsx } from 'clsx';
3
- import React from 'react';
4
- import styles from './drawer_end.module.css';
5
-
6
- export interface DrawerEndProps extends Omit<VStackProps, 'as' | 'children'> {
7
- children?: React.ReactNode;
8
- }
9
-
10
- export const DrawerEnd = React.forwardRef<HTMLElement, DrawerEndProps>(function DrawerEnd(
11
- { children, className, ...props }: DrawerEndProps,
12
- ref
13
- ) {
14
- return (
15
- <VStack
16
- ref={ref}
17
- as="section"
18
- className={clsx(styles.drawerEnd, className, 'tcn-drawerEnd')}
19
- {...props}
20
- >
21
- {children}
22
- </VStack>
23
- );
24
- });
@@ -1,5 +0,0 @@
1
- @layer tcn-system {
2
- :where(.drawerStart) {
3
- background-color: var(--background-color-primary);
4
- }
5
- }
@@ -1,23 +0,0 @@
1
- import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import { clsx } from 'clsx';
3
- import React from 'react';
4
- import styles from './drawer_start.module.css';
5
-
6
- export interface DrawerStartProps extends Omit<VStackProps, 'as' | 'children'> {
7
- children?: React.ReactNode;
8
- }
9
-
10
- export const DrawerStart = React.forwardRef<HTMLElement, DrawerStartProps>(
11
- function DrawerStart({ children, className, ...props }: DrawerStartProps, ref) {
12
- return (
13
- <VStack
14
- ref={ref}
15
- as="section"
16
- className={clsx(styles.drawerStart, className, 'tcn-drawerStart')}
17
- {...props}
18
- >
19
- {children}
20
- </VStack>
21
- );
22
- }
23
- );
@@ -1,5 +0,0 @@
1
- @layer tcn-system {
2
- :where(.drawerBottom) {
3
- background-color: var(--background-color-primary);
4
- }
5
- }
@@ -1,24 +0,0 @@
1
- import { VStack, type VStackProps } from '../../../stacks/v_stack.js';
2
- import { clsx } from 'clsx';
3
- import React from 'react';
4
- import styles from './drawer_top.module.css';
5
-
6
- export interface DrawerTopProps extends Omit<VStackProps, 'as' | 'children'> {
7
- children?: React.ReactNode;
8
- }
9
-
10
- export const DrawerTop = React.forwardRef<HTMLElement, DrawerTopProps>(function DrawerTop(
11
- { children, className, ...props }: DrawerTopProps,
12
- ref
13
- ) {
14
- return (
15
- <VStack
16
- ref={ref}
17
- as="section"
18
- className={clsx(styles.drawerTop, className, 'tcn-drawerTop')}
19
- {...props}
20
- >
21
- {children}
22
- </VStack>
23
- );
24
- });