@uxf/ui 1.0.1 → 10.0.0-beta.5

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 (69) hide show
  1. package/_select-base/_select-base.js +3 -2
  2. package/chip/chip.d.ts +3 -1
  3. package/chip/chip.js +6 -5
  4. package/chip/chip.stories.js +27 -10
  5. package/chip/theme.d.ts +7 -0
  6. package/css/avatar-file-input.css +82 -0
  7. package/css/avatar.css +15 -0
  8. package/css/badge.css +23 -0
  9. package/css/button-group.css +22 -0
  10. package/css/button-list.css +61 -0
  11. package/css/button.css +335 -0
  12. package/css/calendar.css +215 -0
  13. package/css/checkbox-button.css +98 -0
  14. package/css/checkbox-input.css +24 -0
  15. package/css/checkbox.css +120 -0
  16. package/css/chip.css +591 -0
  17. package/css/color-radio-group.css +21 -0
  18. package/css/color-radio.css +33 -0
  19. package/css/component-structure-analyzer.css +31 -0
  20. package/css/date-picker.css +22 -0
  21. package/css/datetime-picker.css +11 -0
  22. package/css/dropdown.css +70 -0
  23. package/css/dropzone.css +85 -0
  24. package/css/error-message.css +3 -0
  25. package/css/file-input.css +80 -0
  26. package/css/flash-messages.css +28 -0
  27. package/css/form-component.css +7 -0
  28. package/css/icon.css +7 -0
  29. package/css/image-gallery.css +63 -0
  30. package/css/input-basic.css +18 -0
  31. package/css/input-with-popover.css +35 -0
  32. package/css/input.css +270 -0
  33. package/css/label.css +15 -0
  34. package/css/layout.css +47 -0
  35. package/css/list-item.css +29 -0
  36. package/css/loader.css +23 -0
  37. package/css/modal.css +65 -0
  38. package/css/multi-combobox.css +110 -0
  39. package/css/multi-select.css +27 -0
  40. package/css/pagination.css +93 -0
  41. package/css/paper.css +3 -0
  42. package/css/radio-group.css +169 -0
  43. package/css/radio.css +101 -0
  44. package/css/raster-image.css +20 -0
  45. package/css/select-base.css +50 -0
  46. package/css/tabs.css +131 -0
  47. package/css/text-link.css +12 -0
  48. package/css/textarea.css +124 -0
  49. package/css/time-picker.css +32 -0
  50. package/css/toggle.css +80 -0
  51. package/css/tooltip.css +7 -0
  52. package/css/typography.css +51 -0
  53. package/hooks/use-dropdown.d.ts +1 -1
  54. package/image-gallery/components/gallery.d.ts +2 -2
  55. package/image-gallery/components/gallery.js +12 -5
  56. package/image-gallery/image-gallery.d.ts +2 -0
  57. package/image-gallery/image-gallery.js +1 -1
  58. package/multi-combobox/_multi-combobox-base.js +2 -1
  59. package/multi-combobox/types.d.ts +3 -0
  60. package/multi-select/_multi-select-base.js +2 -1
  61. package/multi-select/types.d.ts +3 -2
  62. package/package.json +5 -3
  63. package/tooltip/use-tooltip.d.ts +1 -1
  64. package/tw-tokens/tw-z-index.d.ts +1 -0
  65. package/tw-tokens/tw-z-index.js +1 -0
  66. package/utils/storybook-config.js +1 -1
  67. package/utils/tailwind-config.js +1 -0
  68. package/select/theme.d.ts +0 -5
  69. package/select/theme.js +0 -2
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "1.0.1",
3
+ "version": "10.0.0-beta.5",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "scripts": {
9
- "build": "tsc -P tsconfig.json",
9
+ "prepareCss": "rm -rf ./css && mkdir css && cp ./**/*.css ./css/",
10
+ "build": "npm run prepareCss && tsc -P tsconfig.json",
10
11
  "typecheck": "../../node_modules/.bin/tsc --noEmit --skipLibCheck"
11
12
  },
12
13
  "author": "UX Fans s.r.o",
@@ -20,7 +21,8 @@
20
21
  "color2k": "^2.0.2",
21
22
  "dayjs": "^1.11.7",
22
23
  "jump.js": "^1.0.2",
23
- "react-dropzone": "14.2.3"
24
+ "react-dropzone": "14.2.3",
25
+ "react-swipeable": "7.0.1"
24
26
  },
25
27
  "devDependencies": {
26
28
  "@types/jump.js": "^1.0.4",
@@ -16,8 +16,8 @@ export declare function useTooltip(options: TooltipOptions): {
16
16
  context: {
17
17
  x: number;
18
18
  y: number;
19
- placement: Placement;
20
19
  strategy: import("@floating-ui/react").Strategy;
20
+ placement: Placement;
21
21
  middlewareData: import("@floating-ui/react").MiddlewareData;
22
22
  update: () => void;
23
23
  isPositioned: boolean;
@@ -12,6 +12,7 @@ export declare const twZIndex: {
12
12
  menu: string;
13
13
  header: string;
14
14
  modal: string;
15
+ imageGallery: string;
15
16
  dropdown: string;
16
17
  flashMessage: string;
17
18
  tooltip: string;
@@ -16,6 +16,7 @@ exports.twZIndex = {
16
16
  menu: "25",
17
17
  header: "50",
18
18
  modal: "100",
19
+ imageGallery: "150",
19
20
  dropdown: "200",
20
21
  flashMessage: "250",
21
22
  tooltip: "300",
@@ -32,7 +32,7 @@ exports.defaultConfig = {
32
32
  variants: ["default", "outlined", "white", "text"],
33
33
  },
34
34
  Chip: {
35
- colors: ["orange", "red", "yellow", "pink", "purple", "indigo", "green", "blue", "default"],
35
+ colors: ["primary", "orange", "red", "yellow", "pink", "purple", "indigo", "green", "blue", "default"],
36
36
  },
37
37
  Input: {
38
38
  sizes: ["small", "default", "large"],
@@ -116,6 +116,7 @@ module.exports = {
116
116
  menu: "25",
117
117
  header: "50",
118
118
  modal: "100",
119
+ imageGallery: "150",
119
120
  dropdown: "200",
120
121
  flashMessage: "250",
121
122
  tooltip: "300",
package/select/theme.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export interface SelectSizes {
2
- sm: true;
3
- default: true;
4
- lg: true;
5
- }
package/select/theme.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });