@atom-learning/components 6.5.2 → 6.5.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 (49) hide show
  1. package/dist/components/badge/Badge.colorscheme.config.js +57 -173
  2. package/dist/components/badge/Badge.colorscheme.config.js.map +1 -1
  3. package/dist/components/checkbox/Checkbox.js +13 -17
  4. package/dist/components/checkbox/Checkbox.js.map +1 -1
  5. package/dist/components/data-table/DataTableGlobalFilter.js +5 -5
  6. package/dist/components/data-table/DataTableGlobalFilter.js.map +1 -1
  7. package/dist/components/data-table/DataTableRowSelectionCheckbox.js +14 -13
  8. package/dist/components/data-table/DataTableRowSelectionCheckbox.js.map +1 -1
  9. package/dist/components/data-table/DataTableSelectAllRowsCheckbox.js +12 -11
  10. package/dist/components/data-table/DataTableSelectAllRowsCheckbox.js.map +1 -1
  11. package/dist/components/field-wrapper/FieldWrapper.js +11 -14
  12. package/dist/components/field-wrapper/FieldWrapper.js.map +1 -1
  13. package/dist/components/loader/Loader.js +5 -6
  14. package/dist/components/loader/Loader.js.map +1 -1
  15. package/dist/components/notification-badge/NotificationBadge.js +7 -7
  16. package/dist/components/notification-badge/NotificationBadge.js.map +1 -1
  17. package/dist/components/number-input/NumberInputStepper.js +11 -8
  18. package/dist/components/number-input/NumberInputStepper.js.map +1 -1
  19. package/dist/components/slider/SliderSteps.js +11 -17
  20. package/dist/components/slider/SliderSteps.js.map +1 -1
  21. package/dist/components/tree/Tree.d.ts +6 -17
  22. package/dist/components/tree/TreeCollapsibleContent.d.ts +2 -4
  23. package/dist/components/tree/TreeCollapsibleContent.js +13 -12
  24. package/dist/components/tree/TreeCollapsibleContent.js.map +1 -1
  25. package/dist/components/tree/TreeCollapsibleTrigger.d.ts +1 -1
  26. package/dist/components/tree/TreeCollapsibleTrigger.js +14 -12
  27. package/dist/components/tree/TreeCollapsibleTrigger.js.map +1 -1
  28. package/dist/components/tree/TreeIcon.d.ts +2 -14
  29. package/dist/components/tree/TreeIcon.js +6 -9
  30. package/dist/components/tree/TreeIcon.js.map +1 -1
  31. package/dist/components/tree/TreeListItem.d.ts +1 -5
  32. package/dist/components/tree/TreeListItem.js +7 -11
  33. package/dist/components/tree/TreeListItem.js.map +1 -1
  34. package/dist/docgen.json +1 -1
  35. package/dist/experiments/color-scheme/ColorScheme.config.d.ts +6 -186
  36. package/dist/experiments/color-scheme/ColorScheme.config.js +21 -134
  37. package/dist/experiments/color-scheme/ColorScheme.config.js.map +1 -1
  38. package/dist/index.cjs.js +1 -1
  39. package/dist/index.cjs.js.map +1 -1
  40. package/dist/index.d.ts +0 -1
  41. package/dist/index.js +1 -2
  42. package/package.json +5 -6
  43. package/dist/utilities/hooks/useWindowSize.d.ts +0 -8
  44. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +0 -5
  45. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js +0 -12
  46. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js.map +0 -1
  47. package/dist/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.d.ts +0 -7
  48. package/dist/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.js +0 -9
  49. package/dist/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './components';
2
2
  export * from './styled';
3
3
  export * from './experiments/color-scheme/ColorScheme';
4
- export { NoOverflowWrapper } from './utilities/no-overflow-wrapper/NoOverflowWrapper';
package/dist/index.js CHANGED
@@ -97,5 +97,4 @@ import { KeyboardShortcut as Xe } from "./components/keyboard-shortcut/index.js"
97
97
  import { SegmentedControl as Ze } from "./components/segmented-control/SegmentedControl.js";
98
98
  import { FileDrop as Qe } from "./components/file-drop/FileDrop.js";
99
99
  import { useFileDrop as $e } from "./components/file-drop/useFileDrop.js";
100
- import { NoOverflowWrapper as et } from "./utilities/no-overflow-wrapper/NoOverflowWrapper.js";
101
- export { a as Accordion, s as ActionIcon, c as AlertDialog, m as AlertProvider, _ as Avatar, v as Badge, b as BannerRegular, x as BannerSlim, S as Box, u as Button, C as Carousel, T as Checkbox, N as CheckboxField, E as CheckboxGroup, O as CheckboxTree, P as Chip, L as ChipDismissibleGroup, F as ChipGroup, R as ChipToggleGroup, r as ColorScheme, z as Combobox, J as CreatePasswordField, re as DataTable, ae as DateField, ie as DateInput, oe as Dialog, y as Dismissible, I as DismissibleGroup, Z as Divider, se as Drawer, ce as DropdownMenu, Q as EmptyState, H as FieldWrapper, Qe as FileDrop, le as FileInput, ue as Flex, de as Form, fe as Grid, f as Heading, i as Icon, g as Image, M as InlineFieldWrapper, k as InlineMessage, U as Input, W as InputBackground, pe as InputField, G as InputText, Xe as KeyboardShortcut, A as Label, B as Link, me as List, l as Loader, he as MarkdownContent, ge as NavigationMenu, ve as NavigationMenuVertical, et as NoOverflowWrapper, ye as NotificationBadge, be as NumberInput, xe as NumberInputField, ne as Pagination, q as PasswordField, K as PasswordInput, te as Popover, Se as ProgressBar, j as RadioButton, we as RadioButtonField, Ce as RadioButtonGroup, Te as RadioCard, Ee as RadioCardGroup, De as SearchField, $ as SearchInput, Oe as SectionMessage, Ze as SegmentedControl, ke as Select, Ae as SelectField, je as SideBar, Fe as Skeleton, Me as Slider, Ne as SliderField, ee as Sortable, Ie as Spacer, Le as Stepper, d as StyledButton, V as StyledLink, Re as Switch, Y as Table, ze as Tabs, p as Text, Be as Textarea, Ve as TextareaField, e as Theme, Pe as Tile, He as TileInteractive, Ue as TileToggleGroup, We as Toast, Ge as ToastProvider, qe as ToggleGroup, o as Tooltip, Je as TopBar, D as Tree, Ye as Video, t as createTheme, n as styled, Ke as toast, h as useAlert, w as useCarousel, X as useDataTable, $e as useFileDrop, _e as useSidebarState };
100
+ export { a as Accordion, s as ActionIcon, c as AlertDialog, m as AlertProvider, _ as Avatar, v as Badge, b as BannerRegular, x as BannerSlim, S as Box, u as Button, C as Carousel, T as Checkbox, N as CheckboxField, E as CheckboxGroup, O as CheckboxTree, P as Chip, L as ChipDismissibleGroup, F as ChipGroup, R as ChipToggleGroup, r as ColorScheme, z as Combobox, J as CreatePasswordField, re as DataTable, ae as DateField, ie as DateInput, oe as Dialog, y as Dismissible, I as DismissibleGroup, Z as Divider, se as Drawer, ce as DropdownMenu, Q as EmptyState, H as FieldWrapper, Qe as FileDrop, le as FileInput, ue as Flex, de as Form, fe as Grid, f as Heading, i as Icon, g as Image, M as InlineFieldWrapper, k as InlineMessage, U as Input, W as InputBackground, pe as InputField, G as InputText, Xe as KeyboardShortcut, A as Label, B as Link, me as List, l as Loader, he as MarkdownContent, ge as NavigationMenu, ve as NavigationMenuVertical, ye as NotificationBadge, be as NumberInput, xe as NumberInputField, ne as Pagination, q as PasswordField, K as PasswordInput, te as Popover, Se as ProgressBar, j as RadioButton, we as RadioButtonField, Ce as RadioButtonGroup, Te as RadioCard, Ee as RadioCardGroup, De as SearchField, $ as SearchInput, Oe as SectionMessage, Ze as SegmentedControl, ke as Select, Ae as SelectField, je as SideBar, Fe as Skeleton, Me as Slider, Ne as SliderField, ee as Sortable, Ie as Spacer, Le as Stepper, d as StyledButton, V as StyledLink, Re as Switch, Y as Table, ze as Tabs, p as Text, Be as Textarea, Ve as TextareaField, e as Theme, Pe as Tile, He as TileInteractive, Ue as TileToggleGroup, We as Toast, Ge as ToastProvider, qe as ToggleGroup, o as Tooltip, Je as TopBar, D as Tree, Ye as Video, t as createTheme, n as styled, Ke as toast, h as useAlert, w as useCarousel, X as useDataTable, $e as useFileDrop, _e as useSidebarState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom-learning/components",
3
- "version": "6.5.2",
3
+ "version": "6.5.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Atom-Learning/components#readme",
@@ -92,7 +92,6 @@
92
92
  "@radix-ui/react-tabs": "^1.0.4",
93
93
  "@radix-ui/react-toggle-group": "^1.0.4",
94
94
  "@radix-ui/react-tooltip": "^1.0.7",
95
- "@radix-ui/react-visually-hidden": "^1.0.3",
96
95
  "@reach/combobox": "^0.16.1",
97
96
  "@tailwindcss/vite": "^4.2.1",
98
97
  "@tanstack/react-table": "^8.5.11",
@@ -130,7 +129,7 @@
130
129
  "@semantic-release/changelog": "^6.0.3",
131
130
  "@semantic-release/exec": "^7.0.0",
132
131
  "@semantic-release/release-notes-generator": "^14.0.1",
133
- "@size-limit/preset-small-lib": "^7.0.5",
132
+ "@size-limit/preset-small-lib": "^12.0.1",
134
133
  "@testing-library/dom": "^10.4.1",
135
134
  "@testing-library/jest-dom": "^6.9.1",
136
135
  "@testing-library/react": "^16.3.2",
@@ -162,7 +161,7 @@
162
161
  "react-dom": "^18.3.1",
163
162
  "semantic-release": "^25.0.0",
164
163
  "semantic-release-slack-bot": "^4.0.2",
165
- "size-limit": "^7.0.5",
164
+ "size-limit": "^12.0.1",
166
165
  "tsc-alias": "^1.8.10",
167
166
  "typescript": "^5.5.4",
168
167
  "vite": "^8.0.0",
@@ -229,12 +228,12 @@
229
228
  },
230
229
  "size-limit": [
231
230
  {
232
- "limit": "15kb",
231
+ "limit": "12kb",
233
232
  "path": "dist/index.js",
234
233
  "import": "{ Button }"
235
234
  },
236
235
  {
237
- "limit": "30kb",
236
+ "limit": "25kb",
238
237
  "path": "dist/index.js",
239
238
  "import": "{ useAlert, AlertProvider }"
240
239
  }
@@ -1,8 +0,0 @@
1
- interface Size {
2
- width: number | undefined;
3
- height: number | undefined;
4
- }
5
- export declare const useWindowSize: ({ delay }?: {
6
- delay?: number;
7
- }) => Size;
8
- export {};
@@ -1,5 +0,0 @@
1
- export declare const NoOverflowWrapper: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
- }, never> & {
4
- as?: import("react").ElementType;
5
- }>;
@@ -1,12 +0,0 @@
1
- import { styled as e } from "../../styled.js";
2
- //#region src/utilities/no-overflow-wrapper/NoOverflowWrapper.tsx
3
- var t = e("div", { base: [
4
- "size-full",
5
- "rounded-[inherit]",
6
- "overflow-hidden"
7
- ] });
8
- t.displayName = "NoOverflowWrapper";
9
- //#endregion
10
- export { t as NoOverflowWrapper };
11
-
12
- //# sourceMappingURL=NoOverflowWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NoOverflowWrapper.js","names":[],"sources":["../../../src/utilities/no-overflow-wrapper/NoOverflowWrapper.tsx"],"sourcesContent":["import { styled } from '~/styled'\n\nexport const NoOverflowWrapper = styled('div', {\n base: ['size-full', 'rounded-[inherit]', 'overflow-hidden']\n})\n\nNoOverflowWrapper.displayName = 'NoOverflowWrapper'\n"],"mappings":";;AAEA,IAAa,IAAoB,EAAO,OAAO,EAC7C,MAAM;CAAC;CAAa;CAAqB;CAAkB,EAC5D,CAAC;AAEF,EAAkB,cAAc"}
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export declare const OptionalVisuallyHiddenWrapper: {
3
- ({ children, hidden }: React.PropsWithChildren<{
4
- hidden?: boolean;
5
- }>): React.JSX.Element | null;
6
- displayName: string;
7
- };
@@ -1,9 +0,0 @@
1
- import * as e from "react";
2
- import * as t from "@radix-ui/react-visually-hidden";
3
- //#region src/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.tsx
4
- var n = ({ children: n, hidden: r = !1 }) => r ? /* @__PURE__ */ e.createElement(t.Root, null, n) : n ? /* @__PURE__ */ e.createElement(e.Fragment, null, n) : null;
5
- n.displayName = "OptionalVisuallyHiddenWrapper";
6
- //#endregion
7
- export { n as OptionalVisuallyHiddenWrapper };
8
-
9
- //# sourceMappingURL=OptionalVisuallyHiddenWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OptionalVisuallyHiddenWrapper.js","names":[],"sources":["../../../src/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.tsx"],"sourcesContent":["import * as VisuallyHidden from '@radix-ui/react-visually-hidden'\nimport * as React from 'react'\n\nexport const OptionalVisuallyHiddenWrapper = ({\n children,\n hidden = false\n}: React.PropsWithChildren<{\n hidden?: boolean\n}>) => {\n if (hidden) return <VisuallyHidden.Root>{children}</VisuallyHidden.Root>\n\n return children ? (\n // children could be multiple elements/components,\n // so we need a fragment here.\n // eslint-disable-next-line react/jsx-no-useless-fragment\n <>{children}</>\n ) : null\n}\n\nOptionalVisuallyHiddenWrapper.displayName = 'OptionalVisuallyHiddenWrapper'\n"],"mappings":";;;AAGA,IAAa,KAAiC,EAC5C,aACA,YAAS,SAIL,IAAe,kBAAA,cAAC,EAAe,MAAA,MAAM,EAA+B,GAEjE,IAIL,kBAAA,cAAA,EAAA,UAAA,MAAG,EAAY,GACb;AAGN,EAA8B,cAAc"}