welcome-ui 10.0.0-alpha.1 → 10.0.0-alpha.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 (102) hide show
  1. package/README.md +1 -1
  2. package/dist/{2W3RN7C5-bkX-rIa3.js → 2W3RN7C5-uG7eBeTQ.js} +11 -11
  3. package/dist/4I4MLMKD-z3Xm3qCo.js +150 -0
  4. package/dist/Accordion.js +4 -4
  5. package/dist/Alert.js +1 -1
  6. package/dist/AspectRatio.js +1 -1
  7. package/dist/Avatar.js +1 -1
  8. package/dist/{B7UTNDHN-BlIblHCu.js → B7UTNDHN-BDa2-8JK.js} +2 -2
  9. package/dist/Badge.js +1 -1
  10. package/dist/Breadcrumb.css +1 -1
  11. package/dist/Breadcrumb.js +165 -151
  12. package/dist/Button.js +2 -2
  13. package/dist/ButtonGroup.js +1 -1
  14. package/dist/Card.js +1 -1
  15. package/dist/Checkbox.js +2 -2
  16. package/dist/CloseButton.css +1 -1
  17. package/dist/CloseButton.js +12 -12
  18. package/dist/{DSAASPLT-BaaCUKsb.js → DSAASPLT-C-2xDjIv.js} +3 -3
  19. package/dist/DatePicker.js +2 -2
  20. package/dist/DateTimePicker.js +2 -2
  21. package/dist/Drawer.js +25 -22
  22. package/dist/DropdownMenu.js +41 -41
  23. package/dist/Field.js +1 -1
  24. package/dist/FieldGroup.js +1 -1
  25. package/dist/FileDrop.js +2 -2
  26. package/dist/FileUpload.js +1 -1
  27. package/dist/GVVKDT6A-C66-lr0B.js +619 -0
  28. package/dist/Hint.js +1 -1
  29. package/dist/Icon.css +1 -1
  30. package/dist/Icon.js +32 -24
  31. package/dist/InputText.js +1 -1
  32. package/dist/{KPUWHTQJ-D2TPji47.js → KPUWHTQJ-Byij2al4.js} +11 -11
  33. package/dist/Label.js +1 -1
  34. package/dist/Link.js +20 -19
  35. package/dist/Loader.js +1 -1
  36. package/dist/Logo.js +1 -1
  37. package/dist/Modal.js +5 -5
  38. package/dist/{NI3IVY7K-Ztb3-XAv.js → NI3IVY7K-DpF3td-7.js} +115 -115
  39. package/dist/{NMGNQVTG-C6TqBngP.js → NMGNQVTG-BgAqqGOq.js} +6 -6
  40. package/dist/{OE2EFRVA-C3721cM3.js → OE2EFRVA-DkdhQLJL.js} +27 -27
  41. package/dist/{OLVWQA7U-DysaSaZj.js → OLVWQA7U-wHytlFYu.js} +30 -30
  42. package/dist/Pagination.css +1 -1
  43. package/dist/Pagination.js +155 -76
  44. package/dist/Popover.js +21 -21
  45. package/dist/{RTNCFSKZ-qpPg689E.js → RTNCFSKZ-LcIdBwa8.js} +16 -16
  46. package/dist/Radio.js +2 -2
  47. package/dist/RadioGroup.js +4 -4
  48. package/dist/RadioTab.js +2 -2
  49. package/dist/{SBSPVDDI-DJKkC1eb.js → SBSPVDDI-BoxPz2JY.js} +22 -22
  50. package/dist/{SQZLCNLX-CHDXnZ16.js → SQZLCNLX-CUlXoT69.js} +8 -8
  51. package/dist/Search.js +2 -2
  52. package/dist/Select.js +2 -2
  53. package/dist/Slider.js +1 -1
  54. package/dist/Stepper.js +1 -1
  55. package/dist/Swiper.js +1 -1
  56. package/dist/{T22PY7TE-C1N0q8Kn.js → T22PY7TE-CzEDuEn1.js} +21 -21
  57. package/dist/Table.js +1 -1
  58. package/dist/Tabs.js +23 -23
  59. package/dist/Tag.js +1 -1
  60. package/dist/Text.js +1 -1
  61. package/dist/Textarea.js +1 -1
  62. package/dist/TimePicker.js +2 -2
  63. package/dist/Toast.css +1 -1
  64. package/dist/Toast.js +286 -222
  65. package/dist/Toggle.js +2 -2
  66. package/dist/Tooltip.css +1 -1
  67. package/dist/Tooltip.js +118 -129
  68. package/dist/VariantIcon.js +1 -1
  69. package/dist/VisuallyHidden.js +1 -1
  70. package/dist/WelcomeLoader.js +1 -1
  71. package/dist/{XCKGTAUF-DkxWCbaW.js → XCKGTAUF-CahZE721.js} +4 -4
  72. package/dist/{Y67KZUMI-DFEgrUv2.js → Y67KZUMI-BDyUNSJw.js} +5 -5
  73. package/dist/{ZTXFEM5L-CkrIQCN1.js → ZTXFEM5L-CjFLRObi.js} +3 -3
  74. package/dist/{downshift.esm-D_6pHXkq.js → downshift.esm-xtYanIDi.js} +1 -1
  75. package/dist/scss/breakpoints.scss +9 -0
  76. package/dist/scss/text-ellipsis.scss +5 -0
  77. package/dist/scss/texts.scss +108 -0
  78. package/dist/theme.css +1 -1
  79. package/dist/{tslib.es6-DpB4Y59c.js → tslib.es6-C80jYMbM.js} +1 -1
  80. package/dist/types/components/Breadcrumb/types.d.ts +5 -1
  81. package/dist/types/components/Drawer/AssetDrawer/types.d.ts +3 -0
  82. package/dist/types/components/Drawer/components/Backdrop.d.ts +1 -1
  83. package/dist/types/components/Drawer/index.d.ts +1 -1
  84. package/dist/types/components/Icon/icons.d.ts +4 -5
  85. package/dist/types/components/Icon/types.d.ts +2 -0
  86. package/dist/types/components/Pagination/types.d.ts +11 -0
  87. package/dist/types/components/Toast/components/Growl.d.ts +2 -0
  88. package/dist/types/components/Toast/index.d.ts +4 -1
  89. package/dist/types/components/Toast/types.d.ts +8 -9
  90. package/dist/types/components/Tooltip/types.d.ts +1 -1
  91. package/dist/types/theme/types.d.ts +22 -0
  92. package/dist/types/utils/index.d.ts +0 -1
  93. package/dist/{utils-DileZjMm.js → utils-BD597oo6.js} +1 -1
  94. package/dist/utils.js +2 -2
  95. package/package.json +2 -1
  96. package/dist/4I4MLMKD-BLxAidnq.js +0 -43
  97. package/dist/GVVKDT6A-bET6V7Py.js +0 -724
  98. package/dist/index.css +0 -0
  99. package/dist/types/components/Icon/Icon.d.ts +0 -2
  100. package/dist/types/utils/theme/index.d.ts +0 -0
  101. /package/dist/{index-CdiHdiVB.js → index-PAaZGbyz.js} +0 -0
  102. /package/dist/types/components/Icon/{Icon.test.d.ts → index.test.d.ts} +0 -0
@@ -8,7 +8,7 @@ export type ToastOptions = {
8
8
  onClose?: () => void;
9
9
  position?: ToastPosition;
10
10
  };
11
- export type ToastVariant = 'ai' | 'beige' | 'danger' | 'info' | 'success' | 'warning';
11
+ export type ToastVariant = 'error' | 'info' | 'success' | 'warning';
12
12
  export type ToastWrapperProps = {
13
13
  toast: CustomToastOptions & Toast;
14
14
  updateHeight: (toastId: string, height: number) => void;
@@ -17,20 +17,19 @@ type CustomToastOptions = {
17
17
  onClose?: () => void;
18
18
  };
19
19
  interface GrowlOptions {
20
- 'data-testid'?: string;
20
+ cta?: JSX.Element;
21
+ duration?: ToastOptions['duration'];
21
22
  hasCloseButton?: boolean;
22
- hideIcon?: boolean;
23
- onClose?: () => void;
23
+ onClose?: ToastOptions['onClose'];
24
+ showProgressBar?: boolean;
24
25
  variant?: ToastVariant;
25
26
  }
26
27
  interface SnackbarOptions {
27
- /** add correct separator for call to action
28
- * use SnackbarAction
29
- */
30
28
  cta?: JSX.Element;
29
+ duration?: ToastOptions['duration'];
31
30
  hasCloseButton?: boolean;
32
- hideIcon?: boolean;
33
- onClose?: () => void;
31
+ hideProgressBar?: boolean;
32
+ onClose?: ToastOptions['onClose'];
34
33
  variant?: ToastVariant;
35
34
  }
36
35
  export {};
@@ -5,7 +5,7 @@ export interface TooltipOptions {
5
5
  fixed?: boolean;
6
6
  gutter?: number;
7
7
  placement?: TooltipPlacement;
8
- withArrow?: boolean;
8
+ title?: JSX.Element | string;
9
9
  }
10
10
  export type TooltipPlacement = AriakitTooltipStoreProps['placement'];
11
11
  export type TooltipProps = Omit<AriakitTooltipProps, 'children' | 'content'> & TooltipOptions;
@@ -1337,28 +1337,50 @@ export type ThemeVariables = {
1337
1337
  '--color-logo-mark-primary': string;
1338
1338
  '--color-logo-mark-primary-fixed': string;
1339
1339
  '--font-size-12': string;
1340
+ '--text-12': string;
1340
1341
  '--font-size-14': string;
1342
+ '--text-14': string;
1341
1343
  '--font-size-16': string;
1344
+ '--text-16': string;
1342
1345
  '--font-size-18': string;
1346
+ '--text-18': string;
1343
1347
  '--font-size-20': string;
1348
+ '--text-20': string;
1344
1349
  '--font-size-24': string;
1350
+ '--text-24': string;
1345
1351
  '--font-size-32': string;
1352
+ '--text-32': string;
1346
1353
  '--font-size-36': string;
1354
+ '--text-36': string;
1347
1355
  '--font-size-48': string;
1356
+ '--text-48': string;
1348
1357
  '--font-size-60': string;
1358
+ '--text-60': string;
1349
1359
  '--font-size-72': string;
1360
+ '--text-72': string;
1350
1361
  '--font-size-xs': string;
1362
+ '--text-xs': string;
1351
1363
  '--font-size-sm': string;
1364
+ '--text-sm': string;
1352
1365
  '--font-size-md': string;
1366
+ '--text-md': string;
1353
1367
  '--font-size-lg': string;
1368
+ '--text-lg': string;
1354
1369
  '--font-size-xl': string;
1370
+ '--text-xl': string;
1355
1371
  '--font-size-2xl': string;
1356
1372
  '--font-size-xxl': string;
1373
+ '--text-2xl': string;
1357
1374
  '--font-size-3xl': string;
1375
+ '--text-3xl': string;
1358
1376
  '--font-size-4xl': string;
1377
+ '--text-4xl': string;
1359
1378
  '--font-size-5xl': string;
1379
+ '--text-5xl': string;
1360
1380
  '--font-size-6xl': string;
1381
+ '--text-6xl': string;
1361
1382
  '--font-size-7xl': string;
1383
+ '--text-7xl': string;
1362
1384
  '--font-family-title': string;
1363
1385
  '--font-family-body': string;
1364
1386
  '--font-weight-regular': string;
@@ -1,5 +1,4 @@
1
1
  export * from './classNames';
2
2
  export * from './forwardRefWithAs';
3
- export * from './theme';
4
3
  export * from './ts-utils';
5
4
  export * from './use-copy-text';
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { g as J } from "./index-CdiHdiVB.js";
2
+ import { g as J } from "./index-PAaZGbyz.js";
3
3
  const Y = {
4
4
  "custom-header": "_custom-header_1w74t_2",
5
5
  "date-picker": "_date-picker_1w74t_9",
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { b as f } from "./index-CdiHdiVB.js";
3
- import { c as d } from "./index-CdiHdiVB.js";
2
+ import { b as f } from "./index-PAaZGbyz.js";
3
+ import { c as d } from "./index-PAaZGbyz.js";
4
4
  import { f as C } from "./forwardRefWithAs-8eP3ZN15.js";
5
5
  import { useState as p, useCallback as a } from "react";
6
6
  function n(e, o) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "10.0.0-alpha.1",
3
+ "version": "10.0.0-alpha.3",
4
4
  "description": "Customizable design system with react, typescript, tailwindcss and ariakit.",
5
5
  "files": [
6
6
  "dist"
@@ -17,6 +17,7 @@
17
17
  "import": "./dist/utils.js"
18
18
  },
19
19
  "./*.css": "./dist/*.css",
20
+ "./scss/*": "./dist/scss/*.scss",
20
21
  "./*": {
21
22
  "types": "./dist/types/components/*/index.d.ts",
22
23
  "import": "./dist/*.js"
@@ -1,43 +0,0 @@
1
- "use client";
2
- import { u as p, P as _ } from "./Y67KZUMI-DFEgrUv2.js";
3
- import { c as i, _ as v, d as l, p as h, a as n, f as P, b as m, i as D, u as x, x as E } from "./OE2EFRVA-C3721cM3.js";
4
- import { u as b } from "./ZTXFEM5L-CkrIQCN1.js";
5
- import { jsx as g } from "react/jsx-runtime";
6
- var A = "div", d = i(
7
- function(s) {
8
- var e = s, { store: r } = e, o = v(e, ["store"]);
9
- const c = p();
10
- return r = r || c, o = l(n({}, o), {
11
- ref: h(r == null ? void 0 : r.setAnchorElement, o.ref)
12
- }), o;
13
- }
14
- );
15
- P(function(s) {
16
- const e = d(s);
17
- return m(A, e);
18
- });
19
- var C = "button", k = i(function(s) {
20
- var e = s, { store: r } = e, o = v(e, ["store"]);
21
- const c = p();
22
- r = r || c, D(
23
- r,
24
- process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
25
- );
26
- const u = o.onClick, f = x((t) => {
27
- r == null || r.setAnchorElement(t.currentTarget), u == null || u(t);
28
- });
29
- return o = E(
30
- o,
31
- (t) => /* @__PURE__ */ g(_, { value: r, children: t }),
32
- [r]
33
- ), o = l(n({}, o), {
34
- onClick: f
35
- }), o = d(n({ store: r }, o)), o = b(n({ store: r }, o)), o;
36
- }), w = P(function(s) {
37
- const e = k(s);
38
- return m(C, e);
39
- });
40
- export {
41
- w as P,
42
- k as u
43
- };