@simpli-route/apollo-ds 0.0.16 → 0.0.17
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/components/IconButton/IconButton.d.ts +4 -0
- package/dist/components/IconButton/IconButton.test.d.ts +1 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/types.d.ts +9 -0
- package/dist/components/IconButton/variants.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -9
- package/dist/index.cjs24.js +3 -13
- package/dist/index.cjs25.js +19 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -0
- package/dist/index.cjs32.js +1 -0
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +17 -16
- package/dist/index.es10.js +33 -6
- package/dist/index.es11.js +6 -6
- package/dist/index.es12.js +6 -22
- package/dist/index.es13.js +2 -2
- package/dist/index.es15.js +22 -22
- package/dist/index.es16.js +2 -2
- package/dist/index.es17.js +2 -2
- package/dist/index.es19.js +2 -2
- package/dist/index.es2.js +3 -3
- package/dist/index.es20.js +2 -2
- package/dist/index.es22.js +22 -2
- package/dist/index.es23.js +2 -30
- package/dist/index.es24.js +21 -590
- package/dist/index.es25.js +599 -5
- package/dist/index.es26.js +5 -2
- package/dist/index.es27.js +152 -2
- package/dist/index.es29.js +2 -21
- package/dist/index.es3.js +7 -6
- package/dist/index.es30.js +2 -21
- package/dist/index.es31.js +23 -0
- package/dist/index.es32.js +23 -0
- package/dist/index.es4.js +2 -2
- package/dist/index.es5.js +36 -51
- package/dist/index.es6.js +48 -78
- package/dist/index.es7.js +80 -8
- package/dist/index.es8.js +7 -7
- package/dist/index.es9.js +8 -33
- package/dist/stories/IconButton.stories.d.ts +23 -0
- package/dist/style.css +47 -0
- package/package.json +10 -8
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').ForwardRefExoticComponent<import('../components').IconButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
children: {
|
|
12
|
+
control: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Primary: Story;
|
|
19
|
+
export declare const Secondary: Story;
|
|
20
|
+
export declare const Minimal: Story;
|
|
21
|
+
export declare const Sizes: Story;
|
|
22
|
+
export declare const Active: Story;
|
|
23
|
+
export declare const Disabled: Story;
|
package/dist/style.css
CHANGED
|
@@ -771,14 +771,26 @@ select {
|
|
|
771
771
|
.contents {
|
|
772
772
|
display: contents;
|
|
773
773
|
}
|
|
774
|
+
.size-10 {
|
|
775
|
+
width: 2.5rem;
|
|
776
|
+
height: 2.5rem;
|
|
777
|
+
}
|
|
774
778
|
.size-3 {
|
|
775
779
|
width: 0.75rem;
|
|
776
780
|
height: 0.75rem;
|
|
777
781
|
}
|
|
782
|
+
.size-4 {
|
|
783
|
+
width: 1rem;
|
|
784
|
+
height: 1rem;
|
|
785
|
+
}
|
|
778
786
|
.size-6 {
|
|
779
787
|
width: 1.5rem;
|
|
780
788
|
height: 1.5rem;
|
|
781
789
|
}
|
|
790
|
+
.size-8 {
|
|
791
|
+
width: 2rem;
|
|
792
|
+
height: 2rem;
|
|
793
|
+
}
|
|
782
794
|
.h-12 {
|
|
783
795
|
height: 3rem;
|
|
784
796
|
}
|
|
@@ -1053,6 +1065,10 @@ select {
|
|
|
1053
1065
|
--tw-bg-opacity: 1;
|
|
1054
1066
|
background-color: rgb(149 70 0 / var(--tw-bg-opacity));
|
|
1055
1067
|
}
|
|
1068
|
+
.bg-primary-100 {
|
|
1069
|
+
--tw-bg-opacity: 1;
|
|
1070
|
+
background-color: rgb(230 227 255 / var(--tw-bg-opacity));
|
|
1071
|
+
}
|
|
1056
1072
|
.bg-primary-200 {
|
|
1057
1073
|
--tw-bg-opacity: 1;
|
|
1058
1074
|
background-color: rgb(212 208 251 / var(--tw-bg-opacity));
|
|
@@ -1093,6 +1109,9 @@ select {
|
|
|
1093
1109
|
--tw-bg-opacity: 1;
|
|
1094
1110
|
background-color: rgb(0 128 74 / var(--tw-bg-opacity));
|
|
1095
1111
|
}
|
|
1112
|
+
.bg-transparent {
|
|
1113
|
+
background-color: transparent;
|
|
1114
|
+
}
|
|
1096
1115
|
.bg-white {
|
|
1097
1116
|
--tw-bg-opacity: 1;
|
|
1098
1117
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
@@ -1115,9 +1134,18 @@ select {
|
|
|
1115
1134
|
.stroke-current {
|
|
1116
1135
|
stroke: currentColor;
|
|
1117
1136
|
}
|
|
1137
|
+
.p-1 {
|
|
1138
|
+
padding: 0.25rem;
|
|
1139
|
+
}
|
|
1118
1140
|
.p-2 {
|
|
1119
1141
|
padding: 0.5rem;
|
|
1120
1142
|
}
|
|
1143
|
+
.p-2\.5 {
|
|
1144
|
+
padding: 0.625rem;
|
|
1145
|
+
}
|
|
1146
|
+
.p-3 {
|
|
1147
|
+
padding: 0.75rem;
|
|
1148
|
+
}
|
|
1121
1149
|
.p-4 {
|
|
1122
1150
|
padding: 1rem;
|
|
1123
1151
|
}
|
|
@@ -1267,6 +1295,14 @@ select {
|
|
|
1267
1295
|
--tw-text-opacity: 1;
|
|
1268
1296
|
color: rgb(87 41 0 / var(--tw-text-opacity));
|
|
1269
1297
|
}
|
|
1298
|
+
.text-primary-100 {
|
|
1299
|
+
--tw-text-opacity: 1;
|
|
1300
|
+
color: rgb(230 227 255 / var(--tw-text-opacity));
|
|
1301
|
+
}
|
|
1302
|
+
.text-primary-300 {
|
|
1303
|
+
--tw-text-opacity: 1;
|
|
1304
|
+
color: rgb(180 171 255 / var(--tw-text-opacity));
|
|
1305
|
+
}
|
|
1270
1306
|
.text-primary-50 {
|
|
1271
1307
|
--tw-text-opacity: 1;
|
|
1272
1308
|
color: rgb(243 242 254 / var(--tw-text-opacity));
|
|
@@ -1279,6 +1315,10 @@ select {
|
|
|
1279
1315
|
--tw-text-opacity: 1;
|
|
1280
1316
|
color: rgb(42 22 218 / var(--tw-text-opacity));
|
|
1281
1317
|
}
|
|
1318
|
+
.text-primary-700 {
|
|
1319
|
+
--tw-text-opacity: 1;
|
|
1320
|
+
color: rgb(29 13 165 / var(--tw-text-opacity));
|
|
1321
|
+
}
|
|
1282
1322
|
.text-primary-800 {
|
|
1283
1323
|
--tw-text-opacity: 1;
|
|
1284
1324
|
color: rgb(23 13 108 / var(--tw-text-opacity));
|
|
@@ -1312,6 +1352,10 @@ select {
|
|
|
1312
1352
|
.opacity-70 {
|
|
1313
1353
|
opacity: 0.7;
|
|
1314
1354
|
}
|
|
1355
|
+
.outline-none {
|
|
1356
|
+
outline: 2px solid transparent;
|
|
1357
|
+
outline-offset: 2px;
|
|
1358
|
+
}
|
|
1315
1359
|
.outline {
|
|
1316
1360
|
outline-style: solid;
|
|
1317
1361
|
}
|
|
@@ -1429,6 +1473,9 @@ select {
|
|
|
1429
1473
|
--tw-ring-opacity: 1;
|
|
1430
1474
|
--tw-ring-color: rgb(215 182 18 / var(--tw-ring-opacity));
|
|
1431
1475
|
}
|
|
1476
|
+
.focus\:ring-offset-2:focus {
|
|
1477
|
+
--tw-ring-offset-width: 2px;
|
|
1478
|
+
}
|
|
1432
1479
|
.focus\:ring-offset-\[0\.4px\]:focus {
|
|
1433
1480
|
--tw-ring-offset-width: 0.4px;
|
|
1434
1481
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simpli-route/apollo-ds",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,17 +18,19 @@
|
|
|
18
18
|
"preview": "vite preview",
|
|
19
19
|
"test": "vitest",
|
|
20
20
|
"coverage": "vitest run --coverage",
|
|
21
|
-
"format": "
|
|
21
|
+
"format": "pnpx prettier ./src --write",
|
|
22
22
|
"storybook": "storybook dev -p 6006",
|
|
23
|
-
"build-storybook": "storybook build"
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
|
+
"update-deps": "pnpm update --interactive --latest"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
27
|
"react": "^18.2.0",
|
|
27
28
|
"react-dom": "^18.2.0"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@simpli-route/react-icons": "^1.0.
|
|
31
|
-
"@simpli-route/tailwind-preset": "^0.0.
|
|
31
|
+
"@simpli-route/react-icons": "^1.0.12",
|
|
32
|
+
"@simpli-route/tailwind-preset": "^0.0.3",
|
|
33
|
+
"@testing-library/user-event": "^14.5.2",
|
|
32
34
|
"class-variance-authority": "^0.7.0",
|
|
33
35
|
"clsx": "^2.1.0",
|
|
34
36
|
"react-aria": "^3.32.1",
|
|
@@ -46,9 +48,9 @@
|
|
|
46
48
|
"@storybook/react": "^8.0.6",
|
|
47
49
|
"@storybook/react-vite": "^8.0.6",
|
|
48
50
|
"@storybook/test": "^8.0.6",
|
|
49
|
-
"@tailwindcss/forms": "^0.5.
|
|
50
|
-
"@testing-library/jest-dom": "^6.
|
|
51
|
-
"@testing-library/react": "^
|
|
51
|
+
"@tailwindcss/forms": "^0.5.9",
|
|
52
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
53
|
+
"@testing-library/react": "^16.0.1",
|
|
52
54
|
"@types/react": "^18.2.66",
|
|
53
55
|
"@types/react-dom": "^18.2.22",
|
|
54
56
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|