@algorithm-shift/design-system 1.2.12 → 1.2.14

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 (95) hide show
  1. package/dist/index.css +2314 -1
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.js +4 -22
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +4 -22
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -2
  8. package/src/components/Basic/Image/Image.stories.tsx +0 -13
  9. package/src/components/Basic/Image/Image.tsx +0 -52
  10. package/src/components/Basic/Shape/Shape.tsx +0 -16
  11. package/src/components/Basic/Typography/Typography.stories.tsx +0 -18
  12. package/src/components/Basic/Typography/Typography.tsx +0 -31
  13. package/src/components/DataDisplay/Table/Table.stories.tsx +0 -35
  14. package/src/components/DataDisplay/Table/Table.tsx +0 -15
  15. package/src/components/DataDisplay/index.ts +0 -1
  16. package/src/components/Global/SelectDropdown.tsx +0 -61
  17. package/src/components/Global/TinyMceEditor.tsx +0 -81
  18. package/src/components/Inputs/Checkbox/Checkbox.tsx +0 -18
  19. package/src/components/Inputs/DatePicker/DatePicker.tsx +0 -81
  20. package/src/components/Inputs/DateRange/DateRange.tsx +0 -64
  21. package/src/components/Inputs/Dropdown/Dropdown.tsx +0 -62
  22. package/src/components/Inputs/EmailInput/EmailInput.tsx +0 -64
  23. package/src/components/Inputs/FileInput/FileInput.tsx +0 -24
  24. package/src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx +0 -24
  25. package/src/components/Inputs/NumberInput/NumberInput.tsx +0 -66
  26. package/src/components/Inputs/PasswordInput/PasswordInput.tsx +0 -66
  27. package/src/components/Inputs/PhoneInput/PhoneInput.tsx +0 -58
  28. package/src/components/Inputs/RadioInput/RadioInput.tsx +0 -24
  29. package/src/components/Inputs/RichText/RichText.tsx +0 -10
  30. package/src/components/Inputs/SearchInput/SearchInput.tsx +0 -64
  31. package/src/components/Inputs/SwitchToggle/SwitchToggle.tsx +0 -22
  32. package/src/components/Inputs/TextInput/TextInput.tsx +0 -59
  33. package/src/components/Inputs/Textarea/Textarea.tsx +0 -58
  34. package/src/components/Inputs/UrlInput/UrlInput.tsx +0 -66
  35. package/src/components/Layout/Flex.tsx +0 -13
  36. package/src/components/Layout/Grid.tsx +0 -13
  37. package/src/components/Navigation/Logo/Logo.stories.tsx +0 -25
  38. package/src/components/Navigation/Logo/Logo.tsx +0 -33
  39. package/src/components/Navigation/Notification/Notification.stories.tsx +0 -20
  40. package/src/components/Navigation/Notification/Notification.tsx +0 -20
  41. package/src/components/Navigation/Profile/Profile.stories.tsx +0 -20
  42. package/src/components/Navigation/Profile/Profile.tsx +0 -25
  43. package/src/components/Navigation/Spacer/Spacer.stories.tsx +0 -18
  44. package/src/components/Navigation/Spacer/Spacer.tsx +0 -11
  45. package/src/components/Navigation/Stages/Stages.stories.tsx +0 -24
  46. package/src/components/Navigation/Stages/Stages.tsx +0 -49
  47. package/src/components/Navigation/Tabs/Tabs.stories.tsx +0 -38
  48. package/src/components/Navigation/Tabs/Tabs.tsx +0 -72
  49. package/src/components/Navigation/index.ts +0 -6
  50. package/src/components/index.ts +0 -27
  51. package/src/components/ui/button.stories.tsx +0 -24
  52. package/src/components/ui/button.tsx +0 -59
  53. package/src/components/ui/calendar.tsx +0 -211
  54. package/src/components/ui/checkbox.tsx +0 -30
  55. package/src/components/ui/data-table.tsx +0 -138
  56. package/src/components/ui/dropdown-menu.tsx +0 -258
  57. package/src/components/ui/input.tsx +0 -21
  58. package/src/components/ui/label.tsx +0 -22
  59. package/src/components/ui/popover.tsx +0 -46
  60. package/src/components/ui/radio-group.tsx +0 -43
  61. package/src/components/ui/select.tsx +0 -183
  62. package/src/components/ui/switch.tsx +0 -29
  63. package/src/components/ui/table.tsx +0 -121
  64. package/src/components/ui/textarea.tsx +0 -18
  65. package/src/global.css +0 -6
  66. package/src/index.css +0 -119
  67. package/src/index.ts +0 -4
  68. package/src/lib/utils.ts +0 -6
  69. package/src/stories/Button.stories.ts +0 -54
  70. package/src/stories/Button.tsx +0 -35
  71. package/src/stories/Configure.mdx +0 -364
  72. package/src/stories/Header.stories.ts +0 -34
  73. package/src/stories/Header.tsx +0 -54
  74. package/src/stories/Page.stories.ts +0 -33
  75. package/src/stories/Page.tsx +0 -73
  76. package/src/stories/assets/accessibility.png +0 -0
  77. package/src/stories/assets/accessibility.svg +0 -1
  78. package/src/stories/assets/addon-library.png +0 -0
  79. package/src/stories/assets/assets.png +0 -0
  80. package/src/stories/assets/avif-test-image.avif +0 -0
  81. package/src/stories/assets/context.png +0 -0
  82. package/src/stories/assets/discord.svg +0 -1
  83. package/src/stories/assets/docs.png +0 -0
  84. package/src/stories/assets/figma-plugin.png +0 -0
  85. package/src/stories/assets/github.svg +0 -1
  86. package/src/stories/assets/share.png +0 -0
  87. package/src/stories/assets/styling.png +0 -0
  88. package/src/stories/assets/testing.png +0 -0
  89. package/src/stories/assets/theming.png +0 -0
  90. package/src/stories/assets/tutorials.svg +0 -1
  91. package/src/stories/assets/youtube.svg +0 -1
  92. package/src/stories/button.css +0 -30
  93. package/src/stories/header.css +0 -32
  94. package/src/stories/page.css +0 -68
  95. package/src/types/global.d.ts +0 -85
package/dist/index.mjs CHANGED
@@ -124,34 +124,16 @@ var ImageControl = ({
124
124
  }) => {
125
125
  const imageClass = cn(
126
126
  "h-[200px] w-[200px] border-1",
127
- "border-2 border-dashed border-gray-400 flex items-center justify-center cursor-pointer hover:border-blue-500 transition",
128
- className
127
+ "border-2 border-dashed border-gray-400 flex items-center justify-center cursor-pointer hover:border-blue-500 transition"
129
128
  );
130
129
  const defaultImgClass = cn(
131
130
  "w-full h-full",
132
131
  className
133
132
  );
134
- let src;
135
- let extraProps;
136
- if (imageUrlExternal) {
137
- src = imageUrlExternal;
138
- extraProps = {
139
- className: defaultImgClass
140
- };
141
- } else if (imageUrl) {
142
- src = imageUrl;
143
- extraProps = {
144
- className: defaultImgClass
145
- };
146
- } else {
147
- src = "./image-placeholder.png";
148
- extraProps = {
149
- width: 50,
150
- height: 50,
151
- className: "opacity-50"
152
- };
133
+ if (!imageUrl && !imageUrlExternal) {
134
+ /* @__PURE__ */ jsx5("div", { className: imageClass, children: /* @__PURE__ */ jsx5("img", { src: "./image-placeholder.png", alt: altText, className: "opacity-50", width: 50, height: 50 }) });
153
135
  }
154
- return /* @__PURE__ */ jsx5("div", { className: imageClass, style, children: /* @__PURE__ */ jsx5("img", { src, alt: altText, ...extraProps }) });
136
+ return /* @__PURE__ */ jsx5("img", { src: imageUrlExternal || imageUrl, alt: altText, className: defaultImgClass, style });
155
137
  };
156
138
  var Image_default = ImageControl;
157
139