smartsell-ui-kit 0.1.0 → 0.1.2

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.
package/dist/types.cjs ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types.ts"],"sourcesContent":["export type { ButtonProps } from './components/Button';\nexport type { CardProps } from './components/Card';\nexport type { CardSmallProps } from './components/CardSmall';\nexport type { CheckboxProps } from './components/Checkbox';\nexport type {\n ComposableModalProps,\n ComposableModalSlotRenderProps,\n ComposableModalSlotRenderer,\n ModalSlotContext,\n ModalSlotIds,\n} from './components/ComposableModal';\nexport type {\n DatePickerChangeContext,\n DatePickerChangeReason,\n DatePickerMode,\n DatePickerProps,\n DatePickerValue,\n} from './components/DatePicker';\nexport type { InputProps } from './components/Input';\nexport type {\n ModalAction,\n ModalProps,\n ModalTheme,\n ModalThemeSource,\n StandardModalProps,\n} from './components/Modal';\nexport type { SeparatorOrientation, SeparatorProps } from './components/Separator';\nexport type { SelectProps } from './components/Select';\nexport type {\n SelectAsyncLoadContext,\n SelectAsyncLoadResult,\n SelectAsyncOption,\n SelectAsyncOptionValue,\n SelectAsyncProps,\n} from './components/SelectAsync';\nexport type { TableProps } from './components/Table';\nexport type { TableAsyncProps } from './components/TableAsync';\nexport type { TextareaProps } from './components/Textarea';\nexport type { ControlSize } from './foundation';\nexport type {\n SharedTableProps,\n TableAction,\n TableActionSource,\n TableActionTone,\n TableAsyncLoadContext,\n TableAsyncLoadResult,\n TableColumn,\n TableColumnAlign,\n TableColumnType,\n TableLabels,\n} from './componentsBase/table/types';\nexport type { UiKitThemeTokens } from './foundation';"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,4 @@
1
+ export { ButtonProps, CardProps, CardSmallProps, CheckboxProps, ComposableModalProps, ComposableModalSlotRenderProps, ComposableModalSlotRenderer, ControlSize, DatePickerChangeContext, DatePickerChangeReason, DatePickerMode, DatePickerProps, DatePickerValue, InputProps, ModalAction, ModalProps, ModalSlotContext, ModalSlotIds, ModalTheme, ModalThemeSource, SelectAsyncLoadContext, SelectAsyncLoadResult, SelectAsyncOption, SelectAsyncOptionValue, SelectAsyncProps, SelectProps, SeparatorOrientation, SeparatorProps, SharedTableProps, StandardModalProps, TableAction, TableActionSource, TableActionTone, TableAsyncLoadContext, TableAsyncLoadResult, TableAsyncProps, TableColumn, TableColumnAlign, TableColumnType, TableLabels, TableProps, TextareaProps, UiKitThemeTokens } from './index.cjs';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
4
+ import 'smartsell-theme';
@@ -0,0 +1,4 @@
1
+ export { ButtonProps, CardProps, CardSmallProps, CheckboxProps, ComposableModalProps, ComposableModalSlotRenderProps, ComposableModalSlotRenderer, ControlSize, DatePickerChangeContext, DatePickerChangeReason, DatePickerMode, DatePickerProps, DatePickerValue, InputProps, ModalAction, ModalProps, ModalSlotContext, ModalSlotIds, ModalTheme, ModalThemeSource, SelectAsyncLoadContext, SelectAsyncLoadResult, SelectAsyncOption, SelectAsyncOptionValue, SelectAsyncProps, SelectProps, SeparatorOrientation, SeparatorProps, SharedTableProps, StandardModalProps, TableAction, TableActionSource, TableActionTone, TableAsyncLoadContext, TableAsyncLoadResult, TableAsyncProps, TableColumn, TableColumnAlign, TableColumnType, TableLabels, TableProps, TextareaProps, UiKitThemeTokens } from './index.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
4
+ import 'smartsell-theme';
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "smartsell-ui-kit",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Public UI primitives and modal helpers for SmartSell applications.",
5
- "license": "MIT",
5
+ "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
@@ -13,10 +13,15 @@
13
13
  "import": "./dist/index.js",
14
14
  "require": "./dist/index.cjs"
15
15
  },
16
- "./modal": {
17
- "types": "./dist/modal.d.ts",
18
- "import": "./dist/modal.js",
19
- "require": "./dist/modal.cjs"
16
+ "./img": {
17
+ "types": "./dist/img/index.d.ts",
18
+ "import": "./dist/img/index.js",
19
+ "require": "./dist/img/index.cjs"
20
+ },
21
+ "./types": {
22
+ "types": "./dist/types.d.ts",
23
+ "import": "./dist/types.js",
24
+ "require": "./dist/types.cjs"
20
25
  }
21
26
  },
22
27
  "files": [
@@ -24,15 +29,24 @@
24
29
  "README.md",
25
30
  "LICENSE"
26
31
  ],
27
- "sideEffects": false,
32
+ "sideEffects": [
33
+ "**/*.css"
34
+ ],
28
35
  "scripts": {
29
- "build": "tsup",
30
- "build:storybook": "storybook build",
36
+ "build": "npm run build:styles && tsup",
37
+ "build:storybook": "npm run build:styles && storybook build",
38
+ "build:styles": "tailwindcss -i ./src/styles/tailwind.css -o ./src/styles/ui-kit.css --config ./tailwind.config.cjs",
31
39
  "clean": "rm -rf dist *.tgz",
32
40
  "dev": "tsup --watch",
33
41
  "prepack": "npm run clean && npm run build",
34
- "storybook": "storybook dev -p 6006",
35
- "typecheck": "tsc --noEmit"
42
+ "storybook:clean-cache": "rm -rf node_modules/.cache/storybook node_modules/.cache/sb-vite-plugin-externals",
43
+ "storybook": "npm run build:styles && npm run storybook:clean-cache && storybook dev -p 3005 --no-open",
44
+ "test": "vitest",
45
+ "test:run": "vitest run",
46
+ "typecheck": "tsc --noEmit",
47
+ "typecheck:storybook": "tsc -p .storybook/tsconfig.json --noEmit",
48
+ "validate": "npm run typecheck && npm run typecheck:storybook && npm run test:run && npm run build",
49
+ "validate:release": "npm run validate && CI=1 STORYBOOK_DISABLE_TELEMETRY=1 npm run build:storybook && npm pack --dry-run"
36
50
  },
37
51
  "keywords": [
38
52
  "smartsell",
@@ -44,21 +58,29 @@
44
58
  "react"
45
59
  ],
46
60
  "peerDependencies": {
47
- "react": ">=17",
48
- "smartsell-theme": ">=0.0.5"
61
+ "react": ">=18",
62
+ "react-dom": ">=18",
63
+ "smartsell-theme": ">=0.0.10"
49
64
  },
50
65
  "devDependencies": {
51
66
  "@fontsource/lato": "^5.2.7",
52
67
  "@storybook/addon-a11y": "^8.6.14",
53
68
  "@storybook/addon-essentials": "^8.6.14",
54
69
  "@storybook/react-vite": "^8.6.14",
70
+ "@testing-library/jest-dom": "^6.6.3",
71
+ "@testing-library/react": "^16.3.0",
55
72
  "@types/react": "^18.3.12",
56
73
  "@types/react-dom": "^18.3.7",
74
+ "jsdom": "^26.1.0",
57
75
  "react": "^18.3.1",
58
76
  "react-dom": "^18.3.1",
59
- "smartsell-theme": "^0.0.5",
77
+ "smartsell-theme": "^0.0.10",
60
78
  "storybook": "^8.6.14",
79
+ "autoprefixer": "^10.4.20",
80
+ "postcss": "^8.4.49",
61
81
  "tsup": "^8.3.5",
62
- "typescript": "^5.6.2"
82
+ "tailwindcss": "^3.4.17",
83
+ "typescript": "^5.6.2",
84
+ "vitest": "^2.1.9"
63
85
  }
64
86
  }