@konstructio/ui 0.0.12-alpha.1 → 0.0.12-alpha.10

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 (110) hide show
  1. package/dist/{Combination-BQYb0Gw7.js → Combination-b348x__d.js} +24 -24
  2. package/dist/Modal-B-E9uaA6.js +922 -0
  3. package/dist/components/Alert/Alert.js +58 -0
  4. package/dist/components/Alert/Alert.variants.js +77 -0
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  7. package/dist/components/AlertDialog/components/index.js +1 -1
  8. package/dist/components/Autocomplete/Autocomplete.variants.js +0 -1
  9. package/dist/components/Autocomplete/components/List/List.js +3 -3
  10. package/dist/components/Breadcrumb/Breadcrumb.js +3 -3
  11. package/dist/components/Breadcrumb/Breadcrumb.variants.js +18 -15
  12. package/dist/components/Breadcrumb/components/Item/Item.js +4 -4
  13. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  14. package/dist/components/Button/Button.js +1 -1
  15. package/dist/components/Card/Card.js +3 -3
  16. package/dist/components/Checkbox/Checkbox.js +5 -5
  17. package/dist/components/Command/Command.js +32 -0
  18. package/dist/components/Command/Command.variants.js +97 -0
  19. package/dist/components/Command/components/Command.js +8 -0
  20. package/dist/components/Command/components/CommandEmpty.js +15 -0
  21. package/dist/components/Command/components/CommandGroup.js +19 -0
  22. package/dist/components/Command/components/CommandInput.js +84 -0
  23. package/dist/components/Command/components/CommandItem.js +29 -0
  24. package/dist/components/Command/components/CommandList.js +16 -0
  25. package/dist/components/Command/components/CommandSeparator.js +16 -0
  26. package/dist/components/Command/components/CommandShortcut.js +19 -0
  27. package/dist/components/Command/components/DialogContent.js +31 -0
  28. package/dist/components/Command/components/DialogOverlay.js +19 -0
  29. package/dist/components/Command/components/index.js +20 -0
  30. package/dist/components/Command/contexts/Command.context.js +13 -0
  31. package/dist/components/Command/contexts/Command.provider.js +24 -0
  32. package/dist/components/Command/contexts/index.js +6 -0
  33. package/dist/components/Divider/Divider.js +10 -0
  34. package/dist/components/Divider/Divider.variants.js +14 -0
  35. package/dist/components/Dropdown/Dropdown.variants.js +22 -3
  36. package/dist/components/Dropdown/components/List/List.variants.js +4 -4
  37. package/dist/components/Dropdown/components/ListItem/ListItem.js +19 -18
  38. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +6 -4
  39. package/dist/components/Dropdown/components/Wrapper.js +88 -57
  40. package/dist/components/Input/Input.js +112 -67
  41. package/dist/components/Input/Input.variants.js +5 -6
  42. package/dist/components/Loading/Loading.js +109 -0
  43. package/dist/components/Loading/Loading.variants.js +19 -0
  44. package/dist/components/Modal/Modal.js +3 -3
  45. package/dist/components/Modal/components/Body/Body.js +1 -1
  46. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  47. package/dist/components/Modal/components/Header/Header.js +1 -1
  48. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -5
  49. package/dist/components/Modal/components/index.js +1 -1
  50. package/dist/components/NumberInput/NumberInput.js +1 -1
  51. package/dist/components/ProgressBar/ProgressBar.js +3 -3
  52. package/dist/components/Radio/Radio.js +4 -4
  53. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  54. package/dist/components/Range/Range.js +4 -4
  55. package/dist/components/Sidebar/Sidebar.variants.js +2 -1
  56. package/dist/components/Sidebar/components/Logo/Logo.variants.js +9 -15
  57. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -2
  58. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +6 -5
  59. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +3 -3
  60. package/dist/components/Slider/Slider.js +14 -14
  61. package/dist/components/Switch/Switch.js +17 -17
  62. package/dist/components/Tag/Tag.js +17 -5
  63. package/dist/components/Tag/Tag.variants.js +11 -1
  64. package/dist/components/TagSelect/TagSelect.js +6 -71
  65. package/dist/components/TagSelect/TagSelect.variants.js +29 -50
  66. package/dist/components/TagSelect/components/Item/Item.js +23 -0
  67. package/dist/components/TagSelect/components/Item/Item.variants.js +31 -0
  68. package/dist/components/TagSelect/components/List/List.js +13 -0
  69. package/dist/components/TagSelect/components/List/List.variants.js +37 -0
  70. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +88 -0
  71. package/dist/components/TagSelect/components/index.js +8 -0
  72. package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
  73. package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
  74. package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
  75. package/dist/components/TagSelect/contexts/index.js +6 -0
  76. package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
  77. package/dist/components/TextArea/TextArea.js +28 -22
  78. package/dist/components/TextArea/TextArea.variants.js +0 -1
  79. package/dist/components/Toast/Toast.js +143 -130
  80. package/dist/components/Toast/Toast.variants.js +2 -3
  81. package/dist/components/Tooltip/Tooltip.js +4 -4
  82. package/dist/components/Typography/Typography.js +31 -0
  83. package/dist/components/Typography/Typography.variants.js +63 -0
  84. package/dist/components/index.js +61 -53
  85. package/dist/{index-BxeV34ij.js → index-4ecjw_Aj.js} +1 -1
  86. package/dist/index-B_6_jmOO.js +68 -0
  87. package/dist/{index-BBjak_0p.js → index-BbsJ0VIJ.js} +2 -2
  88. package/dist/{index-CJsYodgi.js → index-BzaHYXkt.js} +9 -9
  89. package/dist/{index-KEdwcThH.js → index-CbTU3cnP.js} +1 -1
  90. package/dist/{index-8vgf-x5i.js → index-Cva-e5M4.js} +2 -2
  91. package/dist/index-CzSBQN5S.js +432 -0
  92. package/dist/index-D7QNmo_D.js +422 -0
  93. package/dist/index-DUA6Y_AE.js +126 -0
  94. package/dist/{index-CoqDsznq.js → index-D_76wh4w.js} +3 -3
  95. package/dist/{index-D4Q2rMby.js → index-Dj1pom3_.js} +2 -2
  96. package/dist/index-DyKo5ZJT.js +446 -0
  97. package/dist/index.d.ts +61 -7
  98. package/dist/index.js +76 -68
  99. package/dist/package.json +36 -35
  100. package/dist/plugins/konstruct.js +34 -31
  101. package/dist/plugins/utils/animation.styles.js +162 -0
  102. package/dist/plugins/utils/index.js +7 -0
  103. package/dist/styles.css +1 -1
  104. package/dist/{useBreadcrumb-CojbXFVD.js → useBreadcrumb-BsIeMoR1.js} +47 -47
  105. package/dist/utils/index.js +320 -322
  106. package/package.json +36 -35
  107. package/dist/Modal-W2GbkC_F.js +0 -906
  108. package/dist/index-1GLoikpT.js +0 -19134
  109. package/dist/index-BVppSRDQ.js +0 -551
  110. package/dist/index-DoOsnuB6.js +0 -72
package/dist/index.js CHANGED
@@ -1,72 +1,80 @@
1
- import { AlertDialog as e } from "./components/AlertDialog/AlertDialog.js";
2
- import { Autocomplete as p } from "./components/Autocomplete/Autocomplete.js";
3
- import { Breadcrumb as x } from "./components/Breadcrumb/Breadcrumb.js";
4
- import { Button as a } from "./components/Button/Button.js";
5
- import { Card as d } from "./components/Card/Card.js";
6
- import { Checkbox as n } from "./components/Checkbox/Checkbox.js";
7
- import { Dropdown as l } from "./components/Dropdown/Dropdown.js";
8
- import { Input as s } from "./components/Input/Input.js";
9
- import { M as h } from "./Modal-W2GbkC_F.js";
10
- import { NumberInput as C } from "./components/NumberInput/NumberInput.js";
11
- import { ProgressBar as R } from "./components/ProgressBar/ProgressBar.js";
12
- import { Radio as b } from "./components/Radio/Radio.js";
13
- import { RadioCard as B } from "./components/RadioCard/RadioCard.js";
14
- import { RadioCardGroup as P } from "./components/RadioCardGroup/RadioCardGroup.js";
15
- import { RadioGroup as w } from "./components/RadioGroup/RadioGroup.js";
16
- import { Range as I } from "./components/Range/Range.js";
1
+ import { Alert as e } from "./components/Alert/Alert.js";
2
+ import { AlertDialog as p } from "./components/AlertDialog/AlertDialog.js";
3
+ import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
4
+ import { Breadcrumb as a } from "./components/Breadcrumb/Breadcrumb.js";
5
+ import { Button as d } from "./components/Button/Button.js";
6
+ import { Card as n } from "./components/Card/Card.js";
7
+ import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
8
+ import { Dropdown as s } from "./components/Dropdown/Dropdown.js";
9
+ import { Input as h } from "./components/Input/Input.js";
10
+ import { M as C } from "./Modal-B-E9uaA6.js";
11
+ import { NumberInput as R } from "./components/NumberInput/NumberInput.js";
12
+ import { ProgressBar as b } from "./components/ProgressBar/ProgressBar.js";
13
+ import { Radio as B } from "./components/Radio/Radio.js";
14
+ import { RadioCard as G } from "./components/RadioCard/RadioCard.js";
15
+ import { RadioCardGroup as k } from "./components/RadioCardGroup/RadioCardGroup.js";
16
+ import { RadioGroup as y } from "./components/RadioGroup/RadioGroup.js";
17
+ import { Range as L } from "./components/Range/Range.js";
17
18
  import { Footer as F } from "./components/Sidebar/components/Footer/Footer.js";
18
- import { Logo as O } from "./components/Sidebar/components/Logo/Logo.js";
19
- import { Navigation as q } from "./components/Sidebar/components/Navigation/Navigation.js";
20
- import { NavigationGroup as z } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
21
- import { NavigationOption as H } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
22
- import { NavigationSeparator as K } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
23
- import { Sidebar as U } from "./components/Sidebar/Sidebar.js";
24
- import { Slider as W } from "./components/Slider/Slider.js";
25
- import { Switch as Y } from "./components/Switch/Switch.js";
26
- import { Tag as _ } from "./components/Tag/Tag.js";
27
- import { TagSelect as oo } from "./components/TagSelect/TagSelect.js";
28
- import { TextArea as eo } from "./components/TextArea/TextArea.js";
29
- import { Toast as po } from "./components/Toast/Toast.js";
30
- import { Tooltip as xo } from "./components/Tooltip/Tooltip.js";
31
- import { ThemeContext as ao } from "./contexts/theme.context.js";
32
- import { useTheme as go } from "./contexts/theme.hook.js";
33
- import { ThemeProvider as uo } from "./contexts/theme.provider.js";
34
- import { useToggle as To } from "./hooks/useToggle.js";
35
- import { konstructPlugin as co } from "./plugins/konstruct.js";
19
+ import { Logo as j } from "./components/Sidebar/components/Logo/Logo.js";
20
+ import { Navigation as z } from "./components/Sidebar/components/Navigation/Navigation.js";
21
+ import { NavigationGroup as H } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
22
+ import { NavigationOption as K } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
23
+ import { NavigationSeparator as U } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
24
+ import { Sidebar as W } from "./components/Sidebar/Sidebar.js";
25
+ import { Slider as Y } from "./components/Slider/Slider.js";
26
+ import { Switch as _ } from "./components/Switch/Switch.js";
27
+ import { Tag as oo } from "./components/Tag/Tag.js";
28
+ import { TagSelect as eo } from "./components/TagSelect/TagSelect.js";
29
+ import { TextArea as po } from "./components/TextArea/TextArea.js";
30
+ import { Toast as xo } from "./components/Toast/Toast.js";
31
+ import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
32
+ import { Loading as go } from "./components/Loading/Loading.js";
33
+ import { Typography as uo } from "./components/Typography/Typography.js";
34
+ import { Divider as To } from "./components/Divider/Divider.js";
35
+ import { ThemeContext as co } from "./contexts/theme.context.js";
36
+ import { useTheme as vo } from "./contexts/theme.hook.js";
37
+ import { ThemeProvider as No } from "./contexts/theme.provider.js";
38
+ import { useToggle as So } from "./hooks/useToggle.js";
39
+ import { konstructPlugin as Ao } from "./plugins/konstruct.js";
36
40
  export {
37
- e as AlertDialog,
38
- p as Autocomplete,
39
- x as Breadcrumb,
40
- a as Button,
41
- d as Card,
42
- n as Checkbox,
43
- l as Dropdown,
41
+ e as Alert,
42
+ p as AlertDialog,
43
+ x as Autocomplete,
44
+ a as Breadcrumb,
45
+ d as Button,
46
+ n as Card,
47
+ l as Checkbox,
48
+ To as Divider,
49
+ s as Dropdown,
44
50
  F as Footer,
45
- s as Input,
46
- O as Logo,
47
- h as Modal,
48
- q as Navigation,
49
- z as NavigationGroup,
50
- H as NavigationOption,
51
- K as NavigationSeparator,
52
- C as NumberInput,
53
- R as ProgressBar,
54
- b as Radio,
55
- B as RadioCard,
56
- P as RadioCardGroup,
57
- w as RadioGroup,
58
- I as Range,
59
- U as Sidebar,
60
- W as Slider,
61
- Y as Switch,
62
- _ as Tag,
63
- oo as TagSelect,
64
- eo as TextArea,
65
- ao as ThemeContext,
66
- uo as ThemeProvider,
67
- po as Toast,
68
- xo as Tooltip,
69
- co as konstructPlugin,
70
- go as useTheme,
71
- To as useToggle
51
+ h as Input,
52
+ go as Loading,
53
+ j as Logo,
54
+ C as Modal,
55
+ z as Navigation,
56
+ H as NavigationGroup,
57
+ K as NavigationOption,
58
+ U as NavigationSeparator,
59
+ R as NumberInput,
60
+ b as ProgressBar,
61
+ B as Radio,
62
+ G as RadioCard,
63
+ k as RadioCardGroup,
64
+ y as RadioGroup,
65
+ L as Range,
66
+ W as Sidebar,
67
+ Y as Slider,
68
+ _ as Switch,
69
+ oo as Tag,
70
+ eo as TagSelect,
71
+ po as TextArea,
72
+ co as ThemeContext,
73
+ No as ThemeProvider,
74
+ xo as Toast,
75
+ ao as Tooltip,
76
+ uo as Typography,
77
+ Ao as konstructPlugin,
78
+ vo as useTheme,
79
+ So as useToggle
72
80
  };
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.0.12-alpha.0",
5
+ "version": "0.0.12-alpha.9",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -43,9 +43,8 @@
43
43
  "build:storybook": "storybook build -o storybook-static && cp -r public/* storybook-static",
44
44
  "check:prettier": "prettier lib --check --config ./.prettierrc",
45
45
  "check:types": "tsc -p tsconfig.json",
46
- "ci": "npm run build && npm run check:prettier && vitest run",
46
+ "ci": "npm run check:prettier && vitest run && npm run build",
47
47
  "deps:update": "npx npm-check-updates --interactive --format group",
48
- "dev": "vite",
49
48
  "format:prettier": "prettier lib --write './**/*.{js,jsx,ts,tsx}' --config ./.prettierrc",
50
49
  "lint": "eslint lib --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
51
50
  "prepare": "husky",
@@ -56,20 +55,23 @@
56
55
  "test:watch": "vitest dev"
57
56
  },
58
57
  "dependencies": {
59
- "@radix-ui/react-alert-dialog": "^1.1.5",
60
- "@radix-ui/react-checkbox": "^1.1.3",
61
- "@radix-ui/react-slider": "^1.2.2",
62
- "@radix-ui/react-slot": "^1.1.1",
63
- "@radix-ui/react-switch": "^1.1.2",
64
- "@radix-ui/react-toast": "^1.2.5",
65
- "@radix-ui/react-visually-hidden": "^1.1.1",
58
+ "@radix-ui/react-alert-dialog": "^1.1.6",
59
+ "@radix-ui/react-checkbox": "^1.1.4",
60
+ "@radix-ui/react-dialog": "^1.1.6",
61
+ "@radix-ui/react-slider": "^1.2.3",
62
+ "@radix-ui/react-slot": "^1.1.2",
63
+ "@radix-ui/react-switch": "^1.1.3",
64
+ "@radix-ui/react-toast": "^1.2.6",
65
+ "@radix-ui/react-visually-hidden": "^1.1.2",
66
66
  "class-variance-authority": "^0.7.1",
67
67
  "clsx": "^2.1.1",
68
+ "cmdk": "^1.0.4",
68
69
  "js-cookie": "^3.0.5",
70
+ "lucide-react": "^0.477.0",
69
71
  "react-feather": "^2.0.10",
70
- "react-focus-lock": "^2.13.5",
72
+ "react-focus-lock": "^2.13.6",
71
73
  "react-remove-scroll": "^2.6.3",
72
- "tailwind-merge": "^3.0.1"
74
+ "tailwind-merge": "^3.0.2"
73
75
  },
74
76
  "peerDependencies": {
75
77
  "@types/react": "*",
@@ -101,27 +103,27 @@
101
103
  },
102
104
  "devDependencies": {
103
105
  "@rollup/plugin-alias": "^5.1.1",
104
- "@storybook/addon-docs": "^8.5.3",
105
- "@storybook/addon-essentials": "^8.5.3",
106
- "@storybook/addon-interactions": "^8.5.3",
107
- "@storybook/addon-links": "^8.5.3",
106
+ "@storybook/addon-docs": "^8.6.3",
107
+ "@storybook/addon-essentials": "^8.6.3",
108
+ "@storybook/addon-interactions": "^8.6.3",
109
+ "@storybook/addon-links": "^8.6.3",
108
110
  "@storybook/addon-styling-webpack": "^1.0.1",
109
- "@storybook/blocks": "^8.5.3",
110
- "@storybook/react": "^8.5.3",
111
- "@storybook/react-vite": "^8.5.3",
112
- "@storybook/test": "^8.5.3",
111
+ "@storybook/blocks": "^8.6.3",
112
+ "@storybook/react": "^8.6.3",
113
+ "@storybook/react-vite": "^8.6.3",
114
+ "@storybook/test": "^8.6.3",
113
115
  "@testing-library/jest-dom": "^6.6.3",
114
116
  "@testing-library/react": "^16.2.0",
115
117
  "@testing-library/user-event": "^14.6.1",
116
118
  "@types/jest-axe": "^3.5.9",
117
119
  "@types/js-cookie": "^3.0.6",
118
- "@types/lodash": "^4.17.15",
119
- "@types/react": "^19.0.8",
120
- "@types/react-dom": "^19.0.3",
121
- "@typescript-eslint/eslint-plugin": "^8.23.0",
122
- "@typescript-eslint/parser": "^8.23.0",
120
+ "@types/lodash": "^4.17.16",
121
+ "@types/react": "^19.0.10",
122
+ "@types/react-dom": "^19.0.4",
123
+ "@typescript-eslint/eslint-plugin": "^8.26.0",
124
+ "@typescript-eslint/parser": "^8.26.0",
123
125
  "@vitejs/plugin-react": "^4.3.4",
124
- "@vitest/coverage-v8": "^3.0.5",
126
+ "@vitest/coverage-v8": "^3.0.7",
125
127
  "autoprefixer": "^10.4.20",
126
128
  "eslint": "^8.57.0",
127
129
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -129,22 +131,21 @@
129
131
  "eslint-plugin-storybook": "^0.9.0",
130
132
  "glob": "^11.0.1",
131
133
  "husky": "^9.1.7",
132
- "jest": "^29.7.0",
133
- "jest-axe": "^9.0.0",
134
+ "jest-axe": "^10.0.0",
134
135
  "jsdom": "^26.0.0",
135
136
  "lodash": "^4.17.21",
136
- "postcss": "^8.5.1",
137
- "prettier": "^3.4.2",
137
+ "postcss": "^8.5.3",
138
+ "prettier": "^3.5.3",
138
139
  "rimraf": "^6.0.1",
139
- "storybook": "^8.5.3",
140
+ "storybook": "^8.6.3",
140
141
  "tailwindcss": "^3.4.17",
141
142
  "ts-node": "^10.9.2",
142
- "typescript": "^5.7.3",
143
- "vite": "^6.0.11",
144
- "vite-plugin-dts": "^4.5.0",
143
+ "typescript": "^5.8.2",
144
+ "vite": "^6.2.0",
145
+ "vite-plugin-dts": "^4.5.3",
145
146
  "vite-plugin-lib-inject-css": "^2.2.1",
146
147
  "vite-plugin-svgr": "^4.3.0",
147
148
  "vite-tsconfig-paths": "^5.1.4",
148
- "vitest": "^3.0.5"
149
+ "vitest": "^3.0.7"
149
150
  }
150
151
  }
@@ -1,14 +1,15 @@
1
- import { g } from "../_commonjsHelpers-C6fGbg64.js";
2
- import { konstructColors as p } from "./utils/colors.js";
3
- var a = {}, l = {}, d;
4
- function m() {
5
- return d || (d = 1, function(e) {
1
+ import { g as m } from "../_commonjsHelpers-C6fGbg64.js";
2
+ import { addAnimationStyles as p, defaultAnimationThemeValues as c } from "./utils/animation.styles.js";
3
+ import { konstructColors as _ } from "./utils/colors.js";
4
+ var o = {}, l = {}, s;
5
+ function P() {
6
+ return s || (s = 1, function(e) {
6
7
  Object.defineProperty(e, "__esModule", {
7
8
  value: !0
8
9
  }), Object.defineProperty(e, "default", {
9
10
  enumerable: !0,
10
11
  get: function() {
11
- return u;
12
+ return i;
12
13
  }
13
14
  });
14
15
  function n(r, t) {
@@ -18,21 +19,21 @@ function m() {
18
19
  };
19
20
  }
20
21
  n.withOptions = function(r, t = () => ({})) {
21
- const i = function(o) {
22
+ const u = function(a) {
22
23
  return {
23
- __options: o,
24
- handler: r(o),
25
- config: t(o)
24
+ __options: a,
25
+ handler: r(a),
26
+ config: t(a)
26
27
  };
27
28
  };
28
- return i.__isOptionsFunction = !0, i.__pluginFunction = r, i.__configFunction = t, i;
29
+ return u.__isOptionsFunction = !0, u.__pluginFunction = r, u.__configFunction = t, u;
29
30
  };
30
- const u = n;
31
+ const i = n;
31
32
  }(l)), l;
32
33
  }
33
- var s;
34
- function _() {
35
- return s || (s = 1, function(e) {
34
+ var f;
35
+ function v() {
36
+ return f || (f = 1, function(e) {
36
37
  Object.defineProperty(e, "__esModule", {
37
38
  value: !0
38
39
  }), Object.defineProperty(e, "default", {
@@ -41,36 +42,37 @@ function _() {
41
42
  return r;
42
43
  }
43
44
  });
44
- const n = /* @__PURE__ */ u(/* @__PURE__ */ m());
45
- function u(t) {
45
+ const n = /* @__PURE__ */ i(/* @__PURE__ */ P());
46
+ function i(t) {
46
47
  return t && t.__esModule ? t : {
47
48
  default: t
48
49
  };
49
50
  }
50
51
  const r = n.default;
51
- }(a)), a;
52
+ }(o)), o;
52
53
  }
53
- var c, f;
54
- function P() {
55
- if (f) return c;
56
- f = 1;
57
- let e = /* @__PURE__ */ _();
58
- return c = (e.__esModule ? e : { default: e }).default, c;
54
+ var d, g;
55
+ function b() {
56
+ if (g) return d;
57
+ g = 1;
58
+ let e = /* @__PURE__ */ v();
59
+ return d = (e.__esModule ? e : { default: e }).default, d;
59
60
  }
60
- var v = /* @__PURE__ */ P();
61
- const b = /* @__PURE__ */ g(v), w = b(
62
- function({ addBase: e }) {
61
+ var h = /* @__PURE__ */ b();
62
+ const k = /* @__PURE__ */ m(h), q = k(
63
+ function({ addBase: e, addUtilities: n, matchUtilities: i, theme: r }) {
63
64
  e({
64
65
  ":root": {
65
66
  "--viewport-padding": "25px"
66
67
  }
67
- });
68
+ }), p({ addUtilities: n, matchUtilities: i, theme: r });
68
69
  },
69
70
  {
70
71
  theme: {
71
72
  extend: {
72
- colors: { ...p },
73
+ colors: { ..._ },
73
74
  viewportPadding: "",
75
+ ...c,
74
76
  backgroundImage: {
75
77
  "kubefirst-gradient": "linear-gradient(90deg, #81E2B4, #8851C8)"
76
78
  },
@@ -104,12 +106,13 @@ const b = /* @__PURE__ */ g(v), w = b(
104
106
  to: {
105
107
  transform: "translateX(calc(100% + var(--viewport-padding)))"
106
108
  }
107
- }
109
+ },
110
+ ...c.keyframes
108
111
  }
109
112
  }
110
113
  }
111
114
  }
112
115
  );
113
116
  export {
114
- w as konstructPlugin
117
+ q as konstructPlugin
115
118
  };
@@ -0,0 +1,162 @@
1
+ function i(a) {
2
+ return Object.fromEntries(
3
+ Object.entries(a).filter(([e]) => e !== "DEFAULT")
4
+ );
5
+ }
6
+ const r = ({
7
+ addUtilities: a,
8
+ matchUtilities: e,
9
+ theme: n
10
+ }) => {
11
+ a({
12
+ "@keyframes enter": n("keyframes.enter"),
13
+ "@keyframes exit": n("keyframes.exit"),
14
+ ".animate-in": {
15
+ animationName: "enter",
16
+ animationDuration: n("animationDuration.DEFAULT"),
17
+ "--tw-enter-opacity": "initial",
18
+ "--tw-enter-scale": "initial",
19
+ "--tw-enter-rotate": "initial",
20
+ "--tw-enter-translate-x": "initial",
21
+ "--tw-enter-translate-y": "initial"
22
+ },
23
+ ".animate-out": {
24
+ animationName: "exit",
25
+ animationDuration: n("animationDuration.DEFAULT"),
26
+ "--tw-exit-opacity": "initial",
27
+ "--tw-exit-scale": "initial",
28
+ "--tw-exit-rotate": "initial",
29
+ "--tw-exit-translate-x": "initial",
30
+ "--tw-exit-translate-y": "initial"
31
+ }
32
+ }), e(
33
+ {
34
+ "fade-in": (t) => ({ "--tw-enter-opacity": t }),
35
+ "fade-out": (t) => ({ "--tw-exit-opacity": t })
36
+ },
37
+ { values: n("animationOpacity") }
38
+ ), e(
39
+ {
40
+ "zoom-in": (t) => ({ "--tw-enter-scale": t }),
41
+ "zoom-out": (t) => ({ "--tw-exit-scale": t })
42
+ },
43
+ { values: n("animationScale") }
44
+ ), e(
45
+ {
46
+ "spin-in": (t) => ({ "--tw-enter-rotate": t }),
47
+ "spin-out": (t) => ({ "--tw-exit-rotate": t })
48
+ },
49
+ { values: n("animationRotate") }
50
+ ), e(
51
+ {
52
+ "slide-in-from-top": (t) => ({
53
+ "--tw-enter-translate-y": `-${t}`
54
+ }),
55
+ "slide-in-from-bottom": (t) => ({
56
+ "--tw-enter-translate-y": t
57
+ }),
58
+ "slide-in-from-left": (t) => ({
59
+ "--tw-enter-translate-x": `-${t}`
60
+ }),
61
+ "slide-in-from-right": (t) => ({
62
+ "--tw-enter-translate-x": t
63
+ }),
64
+ "slide-out-to-top": (t) => ({
65
+ "--tw-exit-translate-y": `-${t}`
66
+ }),
67
+ "slide-out-to-bottom": (t) => ({
68
+ "--tw-exit-translate-y": t
69
+ }),
70
+ "slide-out-to-left": (t) => ({
71
+ "--tw-exit-translate-x": `-${t}`
72
+ }),
73
+ "slide-out-to-right": (t) => ({
74
+ "--tw-exit-translate-x": t
75
+ })
76
+ },
77
+ { values: n("animationTranslate") }
78
+ ), e(
79
+ { duration: (t) => ({ animationDuration: t }) },
80
+ { values: i(n("animationDuration")) }
81
+ ), e(
82
+ { delay: (t) => ({ animationDelay: t }) },
83
+ { values: n("animationDelay") }
84
+ ), e(
85
+ { ease: (t) => ({ animationTimingFunction: t }) },
86
+ { values: i(n("animationTimingFunction")) }
87
+ ), a({
88
+ ".running": { animationPlayState: "running" },
89
+ ".paused": { animationPlayState: "paused" }
90
+ }), e(
91
+ { "fill-mode": (t) => ({ animationFillMode: t }) },
92
+ { values: n("animationFillMode") }
93
+ ), e(
94
+ { direction: (t) => ({ animationDirection: t }) },
95
+ { values: n("animationDirection") }
96
+ ), e(
97
+ { repeat: (t) => ({ animationIterationCount: t }) },
98
+ { values: n("animationRepeat") }
99
+ );
100
+ }, o = {
101
+ animationDelay: ({ theme: a }) => ({
102
+ ...a("transitionDelay")
103
+ }),
104
+ animationDuration: ({ theme: a }) => ({
105
+ 0: "0ms",
106
+ ...a("transitionDuration")
107
+ }),
108
+ animationTimingFunction: ({ theme: a }) => ({
109
+ ...a("transitionTimingFunction")
110
+ }),
111
+ animationFillMode: {
112
+ none: "none",
113
+ forwards: "forwards",
114
+ backwards: "backwards",
115
+ both: "both"
116
+ },
117
+ animationDirection: {
118
+ normal: "normal",
119
+ reverse: "reverse",
120
+ alternate: "alternate",
121
+ "alternate-reverse": "alternate-reverse"
122
+ },
123
+ animationOpacity: ({ theme: a }) => ({
124
+ DEFAULT: 0,
125
+ ...a("opacity")
126
+ }),
127
+ animationTranslate: ({ theme: a }) => ({
128
+ DEFAULT: "100%",
129
+ ...a("translate")
130
+ }),
131
+ animationScale: ({ theme: a }) => ({
132
+ DEFAULT: 0,
133
+ ...a("scale")
134
+ }),
135
+ animationRotate: ({ theme: a }) => ({
136
+ DEFAULT: "30deg",
137
+ ...a("rotate")
138
+ }),
139
+ animationRepeat: {
140
+ 0: "0",
141
+ 1: "1",
142
+ infinite: "infinite"
143
+ },
144
+ keyframes: {
145
+ enter: {
146
+ from: {
147
+ opacity: "var(--tw-enter-opacity, 1)",
148
+ transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
149
+ }
150
+ },
151
+ exit: {
152
+ to: {
153
+ opacity: "var(--tw-exit-opacity, 1)",
154
+ transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
155
+ }
156
+ }
157
+ }
158
+ };
159
+ export {
160
+ r as addAnimationStyles,
161
+ o as defaultAnimationThemeValues
162
+ };
@@ -0,0 +1,7 @@
1
+ import { addAnimationStyles as e, defaultAnimationThemeValues as r } from "./animation.styles.js";
2
+ import { konstructColors as m } from "./colors.js";
3
+ export {
4
+ e as addAnimationStyles,
5
+ r as defaultAnimationThemeValues,
6
+ m as konstructColors
7
+ };