@konstructio/ui 0.1.2-alpha.110 → 0.1.2-alpha.112

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 (33) hide show
  1. package/dist/{AnimatePresence-V0yte2ER.js → AnimatePresence-BsUYG9bm.js} +1 -1
  2. package/dist/{Modal-B6lSyPYQ.js → Modal-Bk1I_NCC.js} +1 -1
  3. package/dist/Toast-CRPLONv9.js +77 -0
  4. package/dist/assets/icons/components/InformationFilled.js +20 -0
  5. package/dist/assets/icons/components/index.js +108 -106
  6. package/dist/assets/icons/index.js +108 -106
  7. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  8. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  9. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  10. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  11. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +2 -2
  12. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +2 -2
  13. package/dist/components/Modal/Modal.js +1 -1
  14. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  15. package/dist/components/Modal/components/index.js +1 -1
  16. package/dist/components/Toast/Toast.js +1 -1
  17. package/dist/components/Toast/Toast.variants.js +32 -19
  18. package/dist/components/Toast/components/ToastCard/ToastCard.js +43 -43
  19. package/dist/components/Toast/constants/index.js +7 -7
  20. package/dist/components/index.js +2 -2
  21. package/dist/icons.js +108 -106
  22. package/dist/index.js +2 -2
  23. package/dist/lib/assets/icons/components/InformationFilled.d.ts +3 -0
  24. package/dist/lib/assets/icons/components/index.d.ts +1 -0
  25. package/dist/lib/components/Toast/Toast.types.d.ts +5 -0
  26. package/dist/lib/components/Toast/Toast.variants.d.ts +1 -3
  27. package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
  28. package/dist/lib/icons.d.ts +1 -1
  29. package/dist/package.json +9 -10
  30. package/dist/{react-DpRKGbW_.js → react-C685EsYG.js} +1511 -1574
  31. package/dist/styles.css +1 -1
  32. package/package.json +9 -10
  33. package/dist/Toast-DTb03cfB.js +0 -76
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { useToggle as L } from "./hooks/useToggle.js";
14
14
  import { Autocomplete as h } from "./components/Autocomplete/Autocomplete.js";
15
15
  import { t as F } from "./Loading-u8hXrFJR.js";
16
16
  import { Badge as P } from "./components/Badge/Badge.js";
17
- import { t as M } from "./Toast-DTb03cfB.js";
17
+ import { t as M } from "./Toast-CRPLONv9.js";
18
18
  import { Typography as _ } from "./components/Typography/Typography.js";
19
19
  import { ButtonGroup as k } from "./components/ButtonGroup/ButtonGroup.js";
20
20
  import { Card as U } from "./components/Card/Card.js";
@@ -35,7 +35,7 @@ import { TimeFilterDropdown as ur } from "./components/Filter/components/TimeFil
35
35
  import { Filter as cr } from "./components/Filter/Filter.js";
36
36
  import { t as Sr } from "./ImageUpload-BNZjCUTX.js";
37
37
  import { LineChart as vr } from "./components/LineChart/LineChart.js";
38
- import { t as Ar } from "./Modal-B6lSyPYQ.js";
38
+ import { t as Ar } from "./Modal-Bk1I_NCC.js";
39
39
  import { t as wr } from "./components-z-LYRWfq.js";
40
40
  import { PhoneNumberInput as Lr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
41
41
  import { PieChart as hr } from "./components/PieChart/PieChart.js";
@@ -0,0 +1,3 @@
1
+ import { IconProps } from './types';
2
+ export declare const InformationFilledIcon: import('react').ForwardRefExoticComponent<Omit<IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
3
+ export default InformationFilledIcon;
@@ -63,6 +63,7 @@ export { Home2Icon } from './Home2';
63
63
  export { HomeIcon } from './Home';
64
64
  export { IdIcon } from './Id';
65
65
  export { InfoCircleIcon } from './InfoCircle';
66
+ export { InformationFilledIcon } from './InformationFilled';
66
67
  export { InformationOutlineIcon } from './InformationOutline';
67
68
  export { InventoryIcon } from './Inventory';
68
69
  export { InvoiceListIcon } from './InvoiceList';
@@ -30,6 +30,11 @@ export type ToastHeights = Record<string, number>;
30
30
  * ```
31
31
  */
32
32
  export type Props = {
33
+ /**
34
+ * Size each toast to its content, growing leftwards up to the viewport
35
+ * width, instead of the region's fixed width (default: false)
36
+ */
37
+ autoWidth?: boolean;
33
38
  /** Additional CSS classes for the fixed region */
34
39
  className?: string;
35
40
  /** Accessible name of every close button (default: 'Close toast') */
@@ -1,9 +1,7 @@
1
1
  export declare const toastFrameVariants: (props?: ({
2
2
  type?: "success" | "info" | "warning" | "error" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
- export declare const toastVariants: (props?: ({
5
- type?: "success" | "info" | "warning" | "error" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
+ export declare const toastVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
7
5
  export declare const toastTitleVariants: (props?: ({
8
6
  type?: "success" | "info" | "warning" | "error" | null | undefined;
9
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,5 +1,6 @@
1
1
  import { ToastItem } from '../../Toast.types';
2
2
  export type Props = {
3
+ autoWidth: boolean;
3
4
  closeLabel: string;
4
5
  expanded: boolean;
5
6
  frontHeight: number;
@@ -1,2 +1,2 @@
1
- export { AccountsIcon, ActivityIcon, AddChartIcon, AlertOutlineIcon, AllSetCheckIcon, ApiKeyIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowBackIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BillingIcon, BookOpenIcon, CalendarMonthIcon, CheckboxMarkedCircleOutlineIcon, CheckCircleFilledIcon, CheckCircleOutlineIcon, CheckIcon, CheckAltIcon, CircumGlobeIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, CloudLockOutlineIcon, ClustersIcon, CogOutlineIcon, ComputeIcon, ConfigureIcon, CopyIcon, CpuAltIcon, CpuIcon, CubeIcon, DashboardIcon, DatabaseIcon, DatacenterIcon, DeleteIcon, DeployIcon, DetachIcon, DnsIcon, DocsIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, FirewallAltIcon, FirewallIcon, GitIcon, GithubIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, Home2Icon, HomeIcon, IdIcon, InfoCircleIcon, InformationOutlineIcon, InventoryIcon, InvoiceListIcon, KeyIcon, KonstructIcon, KubernetesIcon, LightBulbIcon, LoadBalancerAltIcon, LoadBalancerIcon, LoaderIcon, LockIcon, LockAltIcon, LogOutIcon, NetworkAltIcon, NetworkIcon, ObjectStorageIcon, OrganizationIcon, OrgSettingsIcon, PagesStackIcon, PageviewIcon, PauseIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, PrivateRegionIcon, ProfileIcon, QuotaIcon, ReceiptLongIcon, RefreshIcon, ReservedIpIcon, ScatterPlotIcon, SearchIcon, ServerIcon, SpendStatementIcon, SshKeyIcon, StartIcon, TabNewIcon, TeamMembersIcon, TeamsIcon, UpdatedIcon, UploadIcon, VolumeIcon, WarningIcon, WarningTriangleIcon, WebhookIcon, XIcon, } from './assets/icons/components';
1
+ export { AccountsIcon, ActivityIcon, AddChartIcon, AlertOutlineIcon, AllSetCheckIcon, ApiKeyIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowBackIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BillingIcon, BookOpenIcon, CalendarMonthIcon, CheckboxMarkedCircleOutlineIcon, CheckCircleFilledIcon, CheckCircleOutlineIcon, CheckIcon, CheckAltIcon, CircumGlobeIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, CloudLockOutlineIcon, ClustersIcon, CogOutlineIcon, ComputeIcon, ConfigureIcon, CopyIcon, CpuAltIcon, CpuIcon, CubeIcon, DashboardIcon, DatabaseIcon, DatacenterIcon, DeleteIcon, DeployIcon, DetachIcon, DnsIcon, DocsIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, FirewallAltIcon, FirewallIcon, GitIcon, GithubIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, Home2Icon, HomeIcon, IdIcon, InfoCircleIcon, InformationFilledIcon, InformationOutlineIcon, InventoryIcon, InvoiceListIcon, KeyIcon, KonstructIcon, KubernetesIcon, LightBulbIcon, LoadBalancerAltIcon, LoadBalancerIcon, LoaderIcon, LockIcon, LockAltIcon, LogOutIcon, NetworkAltIcon, NetworkIcon, ObjectStorageIcon, OrganizationIcon, OrgSettingsIcon, PagesStackIcon, PageviewIcon, PauseIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, PrivateRegionIcon, ProfileIcon, QuotaIcon, ReceiptLongIcon, RefreshIcon, ReservedIpIcon, ScatterPlotIcon, SearchIcon, ServerIcon, SpendStatementIcon, SshKeyIcon, StartIcon, TabNewIcon, TeamMembersIcon, TeamsIcon, UpdatedIcon, UploadIcon, VolumeIcon, WarningIcon, WarningTriangleIcon, WebhookIcon, XIcon, } from './assets/icons/components';
2
2
  export type { IconProps, IconComponent } from './assets/icons/components';
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.109",
5
+ "version": "0.1.2-alpha.111",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -87,7 +87,6 @@
87
87
  "@radix-ui/react-slot": "^1.3.3",
88
88
  "@radix-ui/react-switch": "^1.3.7",
89
89
  "@radix-ui/react-tabs": "^1.1.21",
90
- "@radix-ui/react-toast": "^1.2.23",
91
90
  "@radix-ui/react-tooltip": "^1.2.16",
92
91
  "@radix-ui/react-visually-hidden": "^1.2.11",
93
92
  "@react-input/mask": "^2.0.4",
@@ -103,8 +102,8 @@
103
102
  "google-libphonenumber": "^3.2.47",
104
103
  "i18n-iso-countries": "^7.14.0",
105
104
  "js-cookie": "^3.0.8",
106
- "lucide-react": "^1.49.0",
107
- "motion": "^13.4.6",
105
+ "lucide-react": "^1.52.0",
106
+ "motion": "^14.0.0",
108
107
  "react-chartjs-2": "^5.3.1",
109
108
  "react-day-picker": "^10.0.2",
110
109
  "react-feather": "^2.0.10",
@@ -151,7 +150,7 @@
151
150
  "@storybook/addon-links": "^10.6.1",
152
151
  "@storybook/react-vite": "^10.6.1",
153
152
  "@tailwindcss/vite": "^4.3.3",
154
- "@tanstack/react-query": "^5.104.0",
153
+ "@tanstack/react-query": "^5.104.1",
155
154
  "@testing-library/jest-dom": "^7.0.1",
156
155
  "@testing-library/react": "^16.3.3",
157
156
  "@testing-library/user-event": "^14.6.7",
@@ -163,7 +162,7 @@
163
162
  "@types/react-dom": "^19.3.0",
164
163
  "@typescript-eslint/eslint-plugin": "^8.71.0",
165
164
  "@typescript-eslint/parser": "^8.71.0",
166
- "@vitejs/plugin-react": "^6.1.1",
165
+ "@vitejs/plugin-react": "^6.1.2",
167
166
  "@vitest/coverage-v8": "^5.0.3",
168
167
  "autoprefixer": "^10.6.1",
169
168
  "eslint": "^9.39.5",
@@ -175,17 +174,17 @@
175
174
  "glob": "^13.0.6",
176
175
  "husky": "^9.1.7",
177
176
  "jest-axe": "^11.0.0",
178
- "jsdom": "^30.1.1",
177
+ "jsdom": "^30.1.2",
179
178
  "lodash": "^4.18.1",
180
- "postcss": "^8.5.28",
179
+ "postcss": "^8.5.29",
181
180
  "prettier": "^3.9.9",
182
181
  "rimraf": "^6.1.3",
183
182
  "storybook": "^10.6.1",
184
183
  "tailwindcss": "^4.3.3",
185
184
  "ts-node": "^10.9.2",
186
185
  "typescript": "^6.0.3",
187
- "vite": "^8.3.1",
188
- "vite-plugin-dts": "^5.1.1",
186
+ "vite": "^8.3.2",
187
+ "vite-plugin-dts": "^5.1.2",
189
188
  "vite-plugin-lib-inject-css": "^2.2.2",
190
189
  "vite-plugin-svgr": "^5.2.0",
191
190
  "vitest": "^5.0.3"